git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ResourcesSelected Plugin working with URNs - http://trac.myslice.info/ticket/36
[myslice.git]
/
portal
/
static
/
js
/
common.functions.js
diff --git
a/portal/static/js/common.functions.js
b/portal/static/js/common.functions.js
index
2414216
..
56b02ca
100644
(file)
--- a/
portal/static/js/common.functions.js
+++ b/
portal/static/js/common.functions.js
@@
-1,6
+1,10
@@
/*
* This file is included in tophat_render.php
*/
/*
* This file is included in tophat_render.php
*/
+// Escape special characters in jQuery Selector
+function escape_id( myid ) {
+ return "#" + myid.replace( /(:|\.|\[|\])/g, "\\$1" );
+}
function getKeySplitId(id,separator){
// id of elements must respect this rule
function getKeySplitId(id,separator){
// id of elements must respect this rule