diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-25 21:57:08 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-25 21:57:08 +0000 |
commit | d86408d2662b961645b4ed4cdbd37d5150819cf4 (patch) | |
tree | c6b4488e5a3664aedbb22833249380d674b992c5 /views/default/likes/forms | |
parent | e66c96a5709b8b2f9c8b8348ba684bf775ae1405 (diff) | |
download | elgg-d86408d2662b961645b4ed4cdbd37d5150819cf4.tar.gz elgg-d86408d2662b961645b4ed4cdbd37d5150819cf4.tar.bz2 |
Fixed likes interface JS.
git-svn-id: http://code.elgg.org/elgg/trunk@5511 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/likes/forms')
-rw-r--r-- | views/default/likes/forms/edit.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/views/default/likes/forms/edit.php b/views/default/likes/forms/edit.php index 76e503f55..479b10f75 100644 --- a/views/default/likes/forms/edit.php +++ b/views/default/likes/forms/edit.php @@ -20,13 +20,15 @@ if (isset($vars['entity']) && isloggedin()) { $numoflikes = elgg_count_likes($vars['entity']); if ($numoflikes != 0) { if ($numoflikes == 1) { - echo "<a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userlikedthis') . "</a>"; + $user_string = elgg_echo('likes:userlikedthis'); } else { - echo "<a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userslikethis') . "</a>"; + $user_string = elgg_echo('likes:userslikedthis'); } + + echo "<a class=\"likes_list_button\">" . elgg_count_likes($vars['entity']) . " " . $user_string . "</a>"; } //show the users who liked the object - echo "<div id=\"showLikes\" style=\"display:none;\">"; - echo list_annotations($vars['entity']->getGUID(),'likes',99); + echo "<div class=\"likes_list\" style=\"display: none;\">"; + echo list_annotations($vars['entity']->getGUID(), 'likes', 99); echo "</div>"; }
\ No newline at end of file |