try to make the reply button do the right thing if there's no notification box.

darcs-hash:20080827015010-84dde-d5ed6a0a290273e400b71e4623a54ac88ee29173.gz
This commit is contained in:
Evan Prodromou 2008-08-26 21:50:10 -04:00
parent 4787fb5a05
commit 719470994a
2 changed files with 4 additions and 3 deletions

View File

@ -46,8 +46,9 @@ function doreply(nick) {
if ($("#status_textarea")) {
$("#status_textarea").val(replyto);
$("#status_textarea").focus();
}
return false;
}
}
return false;
return true;
}

View 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('→');