Jump to content

Placed quoted ticket text UNDER my signature


mt247

Recommended Posts

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 by mt247
proof-reading fail
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated