X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fstatic%2Fjs%2Fcommon.functions.js;h=d6f3f9953281610bbea62b82045dee91b6e14b58;hb=5d1ad393e97322f88eeee28fe237d85a008cb3b3;hp=24142168e5f9b375ea2037cbb6d138d4a47e4c87;hpb=70953436ac5b56377b4c87fc307d46ef33ddbb27;p=myslice.git diff --git a/portal/static/js/common.functions.js b/portal/static/js/common.functions.js index 24142168..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