diff options
Diffstat (limited to 'views/default/js/initialise_elgg.php')
-rw-r--r-- | views/default/js/initialise_elgg.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/js/initialise_elgg.php b/views/default/js/initialise_elgg.php index 4679f551c..056e22ee0 100644 --- a/views/default/js/initialise_elgg.php +++ b/views/default/js/initialise_elgg.php @@ -56,12 +56,12 @@ $(document).ready(function () { // user likes $(".likes_list_button").click(function(event) { if ($(this).next(".likes_list").css('display') == 'none') { // show list - var topPosition = -$('.likes_list').height(); + var topPosition = - $(this).next(".likes_list").height(); $('.likes_list').css('top',topPosition + 10); $('.likes_list').css('left', -$('.likes_list').width()+40); $(this).next(".likes_list").animate({opacity: "toggle", top: topPosition}, 500); } else { // hide list - var topPosition = -$('.likes_list').height() + 5; + var topPosition = - $(this).next(".likes_list").height() + 5; $(this).next(".likes_list").animate({opacity: "toggle", top: topPosition}, 500); } }); |