From 719470994ada2a8b763ac30746a3f331b7549f2e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 26 Aug 2008 21:50:10 -0400 Subject: [PATCH] try to make the reply button do the right thing if there's no notification box. darcs-hash:20080827015010-84dde-d5ed6a0a290273e400b71e4623a54ac88ee29173.gz --- js/util.js | 5 +++-- lib/stream.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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('→');