mt247 Posted November 14, 2013 Share Posted November 14, 2013 (edited) Currently when I reply to a ticket and click the "Quote" bubble, it places the quoted text above my default signature. Then I have to cut and paste it below my signature before I begin replying. Even if I place my cursor below my signature prior to clicking the Quote bubble it still places the text above the signature. Support told me that the function that does this is in /includes/jscript/admintickets.js. I found this function: function quoteTicket(id,ids) { $(".tab").removeClass("tabselected"); $("#tab0").addClass("tabselected"); $(".tabbox").hide(); $("#tab0box").show(); $.post("supporttickets.php", { action: "getquotedtext", id: id, ids: ids }, function(data){ $("#replymessage").val(data+"\n\n"+$("#replymessage").val()); }); return false; } I'm not very familiar with jquery yet. I tried modifying this line: $("#replymessage").val(data+"\n\n"+$("#replymessage").val()); To no avail, it still put the quoted text above my signature. Can someone help me with the syntax to properly modify this function? -Scott P.S. yes I screwed up the title of the thread, it should say "Place", not "Placed". ugh. Edited November 14, 2013 by mt247 proof-reading fail 0 Quote Link to comment Share on other sites More sharing options...
mt247 Posted November 14, 2013 Author Share Posted November 14, 2013 DANGIT! When I was working on this yesterday I tried to adjust the jquery line myself and it didn't work, but I just had a programmer confirm my syntax was correct so I tried it again and ta-da, it worked great! $("#replymessage").val($("#replymessage").val()+"\n\n"+data); Now the quoted text goes under my signature. I should have done this 2 years ago! -Scott 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted November 15, 2013 Share Posted November 15, 2013 It was quite likely that the js file was cached. A forced refresh of the page or a browser cache clear would have got it working yesterday too. Great little change too. I often cut and paste the quoted text too. I've made this change now 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.