]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try to make the reply button do the right thing if there's no notification box.
authorEvan Prodromou <evan@prodromou.name>
Wed, 27 Aug 2008 01:50:10 +0000 (21:50 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 27 Aug 2008 01:50:10 +0000 (21:50 -0400)
darcs-hash:20080827015010-84dde-d5ed6a0a290273e400b71e4623a54ac88ee29173.gz

js/util.js
lib/stream.php

index ba4376eb95ba3e7da3d224faed2017e8f9103c07..1e782127d738903ae354075c3d71325e53c721c8 100644 (file)
@@ -46,8 +46,9 @@ function doreply(nick) {
           if ($("#status_textarea")) {
                $("#status_textarea").val(replyto);
                $("#status_textarea").focus();
-          }
+                          return false;
+                 }
      }
-     return false;
+     return true;
 }
 
index fbdba91c9771280937f7b2417433874d92e26b70..c50167841d7a0465427b6be5fc0e96ce018d605d 100644 (file)
@@ -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;');