includes/clientside/static/admin-menu.js
changeset 582 a38876c0793c
parent 561 e53cf8b1d942
child 651 ce9d78d7251d
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
   210 
   210 
   211 function item_get_icon (b_junction) {
   211 function item_get_icon (b_junction) {
   212 	return this.o_root.a_tpl['icon_' + ((this.n_depth ? 0 : 32) + (this.a_children.length ? 16 : 0) + (this.a_children.length && this.b_opened ? 8 : 0) + (!b_junction && this.o_root.o_selected == this ? 4 : 0) + (b_junction ? 2 : 0) + (b_junction && this.is_last() ? 1 : 0))];
   212 	return this.o_root.a_tpl['icon_' + ((this.n_depth ? 0 : 32) + (this.a_children.length ? 16 : 0) + (this.a_children.length && this.b_opened ? 8 : 0) + (!b_junction && this.o_root.o_selected == this ? 4 : 0) + (b_junction ? 2 : 0) + (b_junction && this.is_last() ? 1 : 0))];
   213 }
   213 }
   214 
   214 
   215 function addslashes (text) {
       
   216   text = text.replace(/\\/g, '\\\\');
       
   217   text = text.replace(/"/g, '\\"');
       
   218   return text;
       
   219 }
       
   220 
       
   221 var trees = [];
   215 var trees = [];
   222 get_element = document.all ?
   216 get_element = document.all ?
   223 	function (s_id) { return document.all[s_id] } :
   217 	function (s_id) { return document.all[s_id] } :
   224 	function (s_id) { return document.getElementById(s_id) };
   218 	function (s_id) { return document.getElementById(s_id) };
   225 
   219 
   226 
   220 function addslashes(text)
       
   221 {
       
   222   text = text.replace(/\\/g, '\\\\');
       
   223   text = text.replace(/"/g, '\\"');
       
   224   return text;
       
   225 }