Fix syntax error in WSR, move tipsy from views into stream.js, fix stream element delete tipsy.
This commit is contained in:
parent
b7b20b241f
commit
a2f7fed8f4
3 changed files with 7 additions and 8 deletions
|
|
@ -2,10 +2,6 @@
|
|||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
:javascript
|
||||
$(function() {
|
||||
$("span.post_scope").tipsy({trigger: 'hover', gravity: 'n'});
|
||||
});
|
||||
|
||||
.stream_element{:id => post.guid}
|
||||
- if user_signed_in?
|
||||
|
|
|
|||
|
|
@ -10,9 +10,11 @@ var Stream = {
|
|||
Diaspora.widgets.timeago.updateTimeAgo();
|
||||
Diaspora.widgets.directionDetector.updateBinds();
|
||||
|
||||
$(".status_message_delete").tipsy({
|
||||
trigger: "hover",
|
||||
gravity: "n"
|
||||
$.each([".stream_element_delete", "span.post_scope"], function(idx, el){
|
||||
$(el).tipsy({
|
||||
trigger: "hover",
|
||||
gravity: "n"
|
||||
});
|
||||
});
|
||||
//audio links
|
||||
Stream.setUpAudioLinks();
|
||||
|
|
|
|||
|
|
@ -108,8 +108,9 @@ var WebSocketReceiver = {
|
|||
);
|
||||
}
|
||||
|
||||
var toggler = $('.toggle_post_comments', post);
|
||||
var toggler = $('.toggle_post_comments', post).parent();
|
||||
|
||||
if(toggler.length > 0){
|
||||
if( !$(".comments", post).is(':visible') ) {
|
||||
toggler.click();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue