[otrs-cvs] ITSMCore/Kernel/Output/HTML/Standard AgentITSMCustomerSearch.dtl, 1.6, 1.7

"CVS commits notifications of OTRS.org" <[email protected]> Wed, 10 Jul 2013 17:18:07 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ITSMCore/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv15162/Kernel/Output/HTML/Standard

Modified Files:
	AgentITSMCustomerSearch.dtl 
Log Message:
Improved escaping of colons (:) in HTML IDs by using Core.App.EscapeSelector function.

Author: ub

Index: AgentITSMCustomerSearch.dtl
===================================================================
RCS file: /home/cvs/ITSMCore/Kernel/Output/HTML/Standard/AgentITSMCustomerSearch.dtl,v
retrieving revision 1.6
retrieving revision 1.7
diff -2 -u -d -r1.6 -r1.7
--- AgentITSMCustomerSearch.dtl	1 Dec 2011 14:00:33 -0000	1.6
+++ AgentITSMCustomerSearch.dtl	10 Jul 2013 17:18:02 -0000	1.7
@@ -1,5 +1,5 @@
 # --
 # AgentITSMCustomerSearch.dtl - provides autocomplete feature for customer search
-# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -24,7 +24,6 @@
 /*global ITSM: true */
 
-    // escape : with two leading backslashes in front of each :
-    // this is necessary because jQuery can not handle a colon (:) in id attributes
-    ITSM.Agent.CustomerSearch.Init($("#" + "$QData{"ItemID"}".replace(/:/g, '\\:')), $QData{"ActiveAutoComplete"});
+    // escape possible colons (:) in element id because jQuery can not handle it in id attribute selectors
+    ITSM.Agent.CustomerSearch.Init($("#" + Core.App.EscapeSelector("$QData{"ItemID"}"), $QData{"ActiveAutoComplete"});
 //]]></script>
 <!-- dtl:block:CustomerSearchInit -->
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log