Hi guys, last week i've made something that everyone find very usefull. So i'm gonna share it with you and hopefully your users will thank you.
When someone want to send a email with a link to a specific ticket, this button paste the ticket url to the clipboard.
This example is for detail_in.htmpl
function CopyToClipboard()
{
var text="http://servicedeskServerAddress:8080/CAisd/pdmweb.exe?OP=SEARCH+FACTORY=cr+SKIPLIST=1+QBE.EQ.ref_num=" + "$args.ref_num";
if (window.clipboardData && clipboardData.setData)
{
clipboardData.setData('text', text);
alert("URL pasted to clipboard");
}
}
ImgBtnCreate("COPYURL","URL",
"CopyToClipboard()", true, 0);
Ce document a été généré à partir de la discussion suivante :The specified item was not found.