src/js/utils.js
branchnew-model
changeset 906 4b6e154ae8de
parent 887 6a04bd37da0a
child 988 eefd336335f9
equal deleted inserted replaced
905:029a4efe9e24 906:4b6e154ae8de
     1 /* utils.js - various utils that don't belong anywhere else */
     1 /* utils.js - various utils that don't belong anywhere else */
     2 
     2 
     3 IriSP.jqEscape = function(_text) {
     3 IriSP.jqEscape = function(_text) {
     4     return text.replace(/(:|\.)/g,'\\$1');
     4     return _text.replace(/(:|\.)/g,'\\$1');
     5 }
     5 }
     6 
     6 
     7 IriSP.getLib = function(lib) {
     7 IriSP.getLib = function(lib) {
     8     if (IriSP.libFiles.useCdn && typeof IriSP.libFiles.cdn[lib] == "string") {
     8     if (IriSP.libFiles.useCdn && typeof IriSP.libFiles.cdn[lib] == "string") {
     9         return IriSP.libFiles.cdn[lib];
     9         return IriSP.libFiles.cdn[lib];