Fix syntax error in WSR, move tipsy from views into stream.js, fix stream element delete tipsy.

This commit is contained in:
Raphael Sofaer 2011-08-14 17:45:50 -07:00
parent b7b20b241f
commit a2f7fed8f4
3 changed files with 7 additions and 8 deletions

View file

@ -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?

View file

@ -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();

View file

@ -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();
}