diff --git a/js/util.js b/js/util.js index ba4376eb95..1e782127d7 100644 --- a/js/util.js +++ b/js/util.js @@ -46,8 +46,9 @@ function doreply(nick) { if ($("#status_textarea")) { $("#status_textarea").val(replyto); $("#status_textarea").focus(); - } + return false; + } } - return false; + return true; } diff --git a/lib/stream.php b/lib/stream.php index fbdba91c97..c50167841d 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -120,7 +120,7 @@ class StreamAction extends Action { common_element_start('a', array('href' => common_local_url('newnotice', array('replyto' => $profile->nickname)), - 'onclick' => 'doreply("'.$profile->nickname.'"); return false', + 'onclick' => 'return doreply("'.$profile->nickname.'");', 'title' => _('reply'), 'class' => 'replybutton')); common_raw('→');