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