From: Evan Prodromou Date: Wed, 27 Aug 2008 01:50:10 +0000 (-0400) Subject: try to make the reply button do the right thing if there's no notification box. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=719470994ada2a8b763ac30746a3f331b7549f2e;p=quix0rs-gnu-social.git try to make the reply button do the right thing if there's no notification box. darcs-hash:20080827015010-84dde-d5ed6a0a290273e400b71e4623a54ac88ee29173.gz --- 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('→');