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