src/js/utils.js
branchpopcorn-port
changeset 835 a8af9da7c622
parent 834 573c7ca752e0
child 836 526f91f5253e
--- a/src/js/utils.js	Mon Mar 19 18:46:17 2012 +0100
+++ b/src/js/utils.js	Tue Mar 20 21:17:48 2012 +0100
@@ -125,8 +125,12 @@
                                  replace(/\)/g, '%29').replace(/\*/g, '%2A');  
 }
 
-IriSP.jqId = function (myid) { 
-   return IriSP.jQuery('#' + myid.replace(/(:|\.)/g,'\\$1'));
+IriSP.jqEscape = function(text) {
+   return text.replace(/(:|\.)/g,'\\$1')
+}
+
+IriSP.jqId = function (text) { 
+   return IriSP.jQuery('#' + IriSP.jqEscape(text));
  }  
 
 IriSP.__guidCounter = 0;