Prepend replyto string to message, don't destroy user input!
This commit is contained in:
parent
20b2540779
commit
2b00990d27
@ -257,7 +257,7 @@ function NoticeReplySet(nick,id) {
|
|||||||
if (nick.match(rgx_username)) {
|
if (nick.match(rgx_username)) {
|
||||||
replyto = "@" + nick + " ";
|
replyto = "@" + nick + " ";
|
||||||
if ($("#notice_data-text").length) {
|
if ($("#notice_data-text").length) {
|
||||||
$("#notice_data-text").val(replyto);
|
$("#notice_data-text").val(replyto + $("#notice_data-text").val());
|
||||||
$("#form_notice input#notice_in-reply-to").val(id);
|
$("#form_notice input#notice_in-reply-to").val(id);
|
||||||
$("#notice_data-text").focus();
|
$("#notice_data-text").focus();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user