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
cosmetic
[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
3fe31c4
..
d6f3f99
100644
(file)
--- a/
portal/static/js/common.functions.js
+++ b/
portal/static/js/common.functions.js
@@
-1,6
+1,7
@@
-/*
- * 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
@@
-14,11
+15,6
@@
function getKeySplitId(id,separator){
return key;
}
return key;
}
-function errorDisplay(error){
- var out = '<div class="error"><dl id="system-message"><dt class="error">Notice</dt><dd class="error message"><ul><li>' + error + '</li></ul></dd></dl></div>';
- return out;
-}
-
function arrays_equal(a,b) { return !(a<b || b<a); }
function arrayInArray(elt,tab){
function arrays_equal(a,b) { return !(a<b || b<a); }
function arrayInArray(elt,tab){