]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Prepend replyto string to message, don't destroy user input!
authorTom Adams <tom@holizz.com>
Tue, 4 Aug 2009 00:58:45 +0000 (01:58 +0100)
committerTom Adams <tom@holizz.com>
Tue, 4 Aug 2009 00:58:45 +0000 (01:58 +0100)
js/util.js

index fd30336b95a49d9196b04f046c7e49b0d0b3e0b0..d4db8b72a9a7c9dbcb7a0d2862dd1370297981b3 100644 (file)
@@ -257,7 +257,7 @@ function NoticeReplySet(nick,id) {
        if (nick.match(rgx_username)) {
                replyto = "@" + nick + " ";
                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);
                        $("#notice_data-text").focus();
                        return false;