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
|
-# licensed under the Affero General Public License version 3 or later. See
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
:javascript
|
|
||||||
$(function() {
|
|
||||||
$("span.post_scope").tipsy({trigger: 'hover', gravity: 'n'});
|
|
||||||
});
|
|
||||||
|
|
||||||
.stream_element{:id => post.guid}
|
.stream_element{:id => post.guid}
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,12 @@ var Stream = {
|
||||||
Diaspora.widgets.timeago.updateTimeAgo();
|
Diaspora.widgets.timeago.updateTimeAgo();
|
||||||
Diaspora.widgets.directionDetector.updateBinds();
|
Diaspora.widgets.directionDetector.updateBinds();
|
||||||
|
|
||||||
$(".status_message_delete").tipsy({
|
$.each([".stream_element_delete", "span.post_scope"], function(idx, el){
|
||||||
|
$(el).tipsy({
|
||||||
trigger: "hover",
|
trigger: "hover",
|
||||||
gravity: "n"
|
gravity: "n"
|
||||||
});
|
});
|
||||||
|
});
|
||||||
//audio links
|
//audio links
|
||||||
Stream.setUpAudioLinks();
|
Stream.setUpAudioLinks();
|
||||||
//Stream.setUpImageLinks();
|
//Stream.setUpImageLinks();
|
||||||
|
|
|
||||||
|
|
@ -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') ) {
|
if( !$(".comments", post).is(':visible') ) {
|
||||||
toggler.click();
|
toggler.click();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue