X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fstatic%2Fjs%2Fcommon.functions.js;h=56b02ca95d00c8b9f36aafed6e630fa997b2001c;hb=a2069daeaa50cf7328f838d4c3f2ca2da0727bbc;hp=3fe31c44ed2ce939087c3db948935c2beb5262f8;hpb=dbce5d7127dc354a18f9f3cd83299be36ffa2ffa;p=myslice.git diff --git a/portal/static/js/common.functions.js b/portal/static/js/common.functions.js index 3fe31c44..56b02ca9 100644 --- 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 */ +// 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 @@ -14,11 +18,6 @@ function getKeySplitId(id,separator){ return key; } -function errorDisplay(error){ - var out = '
Notice
  • ' + error + '
'; - return out; -} - function arrays_equal(a,b) { return !(a