equal
deleted
inserted
replaced
95 hex = hexa.charAt(dec)+hex; |
95 hex = hexa.charAt(dec)+hex; |
96 if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ } |
96 if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ } |
97 return(hex); |
97 return(hex); |
98 }; |
98 }; |
99 |
99 |
|
100 /* shortcut to have global variables in templates */ |
|
101 IriSP.templToHTML = function(template, values) { |
|
102 var params = IriSP.jQuery.extend(IriSP.default_templates_vars, values); |
|
103 return Mustache.to_html(template, params); |
|
104 }; |
|
105 |
100 /* for ie compatibility |
106 /* for ie compatibility |
101 if (Object.prototype.__defineGetter__&&!Object.defineProperty) { |
107 if (Object.prototype.__defineGetter__&&!Object.defineProperty) { |
102 Object.defineProperty=function(obj,prop,desc) { |
108 Object.defineProperty=function(obj,prop,desc) { |
103 if ("get" in desc) obj.__defineGetter__(prop,desc.get); |
109 if ("get" in desc) obj.__defineGetter__(prop,desc.get); |
104 if ("set" in desc) obj.__defineSetter__(prop,desc.set); |
110 if ("set" in desc) obj.__defineSetter__(prop,desc.set); |