summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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('→');