From d86408d2662b961645b4ed4cdbd37d5150819cf4 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 25 Mar 2010 21:57:08 +0000 Subject: Fixed likes interface JS. git-svn-id: http://code.elgg.org/elgg/trunk@5511 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/views/default/riverdashboard/js.php | 17 ++++------------- .../views/default/riverdashboard/rivercomment.php | 16 ++++++++-------- 2 files changed, 12 insertions(+), 21 deletions(-) (limited to 'mod/riverdashboard/views') diff --git a/mod/riverdashboard/views/default/riverdashboard/js.php b/mod/riverdashboard/views/default/riverdashboard/js.php index 01adec77c..ad96a6069 100644 --- a/mod/riverdashboard/views/default/riverdashboard/js.php +++ b/mod/riverdashboard/views/default/riverdashboard/js.php @@ -1,16 +1,7 @@ - $(document).ready(function() { - - var href = $("div.river_pagination a").attr('href'); - href = href.replace("callback=true","callback="); - $("div.river_pagination a").attr('href',href); - + $('.river_comment_form_button').click(function() { + $(this).next('.river_comment_form').toggle(); + }); }); - - -*/ - -?> \ No newline at end of file + \ No newline at end of file diff --git a/mod/riverdashboard/views/default/riverdashboard/rivercomment.php b/mod/riverdashboard/views/default/riverdashboard/rivercomment.php index 4aa255882..61e5c238e 100644 --- a/mod/riverdashboard/views/default/riverdashboard/rivercomment.php +++ b/mod/riverdashboard/views/default/riverdashboard/rivercomment.php @@ -3,13 +3,13 @@ * Elgg comments add on river form * @uses $vars['entity'] */ - + if (isset($vars['entity']) && isloggedin()) { - $form_body = "Add comment"; - $form_body .= "
"; - $form_body .= elgg_view('input/text',array('internalname' => 'generic_comment', 'value' => 'Add a comment...')); - $form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); - $form_body .= elgg_view('input/submit', array('value' => elgg_echo("post"))); - $form_body .= "
"; - echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add")); + $form_body = "Add comment"; + $form_body .= "
"; + $form_body .= elgg_view('input/text',array('internalname' => 'generic_comment', 'value' => 'Add a comment...')); + $form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); + $form_body .= elgg_view('input/submit', array('value' => elgg_echo("post"))); + $form_body .= "
"; + echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add")); } \ No newline at end of file -- cgit v1.2.3