summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-26 21:50:10 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-26 21:50:10 -0400
commit719470994ada2a8b763ac30746a3f331b7549f2e (patch)
tree65da7c713e71b01fd80c93a0d0a4dc7bfc4582f2
parent4787fb5a059a8434feec9a7e521e6f7ee9a7231a (diff)
try to make the reply button do the right thing if there's no notification box.
darcs-hash:20080827015010-84dde-d5ed6a0a290273e400b71e4623a54ac88ee29173.gz
-rw-r--r--js/util.js5
-rw-r--r--lib/stream.php2
2 files changed, 4 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js
index ba4376eb9..1e782127d 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 fbdba91c9..c50167841 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('&rarr;');