{style}{literal} ul.ow_newsfeed { padding-left: 5px; } .ow_newsfeed_avatar { height: 50px; width: 50px; margin-right: -50px; float: left; } .ow_newsfeed_avatar img { height: 50px; width: 50px; } .ow_newsfeed_body { margin-left: 50px; padding-left: 10px; position: relative; } .ow_newsfeed .ow_newsfeed_item { list-style-image: none; } .ow_newsfeed_toolbar, .ow_newsfeed_line { padding: 0 2px 2px 22px; background-repeat: no-repeat; } .ow_newsfeed_toolbar { float: none; } .ow_newsfeed .ow_comments_list { margin-bottom: 0px; } .ow_newsfeed_remove { position: absolute; top: 5px; right: 0px; display: none; } .ow_newsfeed_body:hover .ow_newsfeed_remove { display: block; } .ow_newsfeed_line_item .ow_newsfeed_toolbar { padding-left: 0px; } .ow_newsfeed_delimiter { border-bottom-width: 1px; height: 1px; } .ow_newsfeed_doublesided_stdmargin { margin: 14px 0px; } .ow_newsfeed_likes { margin-bottom: 3px; } .ow_newsfeed_tooltip .tail { background-position: 30px 0px; } {/literal}{/style} {script}{literal} $('.newsfeed_comment_btn').click(function(){ $(this).parents('.ow_newsfeed_controll:eq(0)').hide(); var $c = $('#' + this.rel); $c.show().find('.ow_newsfeed_comments').show(); var $delim = $c.find('.ow_newsfeed_delimiter'); if ( $delim.attr('ow-likes') != '0' ) { $delim.show(); } $delim.attr('ow-comments', '1'); return false; }); $('.newsfeed_like_btn').click(function(){ var rsp = window.OW_NEWSFEED_LikesResponderUrl, entityType = $(this).attr('ow-entity-type'), entityId = $(this).attr('ow-entity-id'), self = this; $(this).parents('.ow_newsfeed_controll:eq(0)').hide(); $.get(rsp, {entityType: entityType, entityId: entityId}, function(c){ $c = $('#' + self.rel); $c.show().find('.ow_newsfeed_likes').show().html(c); var $delim = $c.find('.ow_newsfeed_delimiter'); if ( $delim.attr('ow-comments') != '0' ) { $delim.show(); } $delim.attr('ow-likes', '1'); }); return false; }); {/literal}{/script}