includes/clientside/static/admin-menu.js
changeset 530 8d3c49b8dc79
parent 21 663fcf528726
child 561 e53cf8b1d942
equal deleted inserted replaced
529:7803c9db3506 530:8d3c49b8dc79
   184 	this.upstatus();
   184 	this.upstatus();
   185 	return Boolean(this.a_config[1]);
   185 	return Boolean(this.a_config[1]);
   186 }
   186 }
   187 
   187 
   188 function item_upstatus (b_clear) {
   188 function item_upstatus (b_clear) {
   189 	window.setTimeout('window.status="' + (b_clear ? '' : this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : '')) + '"', 10);
   189 	window.setTimeout('window.status="' + addslashes(b_clear ? '' : this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : '')) + '"', 10);
   190 }
   190 }
   191 
   191 
   192 function item_init () {
   192 function item_init () {
   193 	var a_offset = [],
   193 	var a_offset = [],
   194 		o_current_item = this.o_parent;
   194 		o_current_item = this.o_parent;
   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 
   215 var trees = [];
   221 var trees = [];
   216 get_element = document.all ?
   222 get_element = document.all ?
   217 	function (s_id) { return document.all[s_id] } :
   223 	function (s_id) { return document.all[s_id] } :
   218 	function (s_id) { return document.getElementById(s_id) };
   224 	function (s_id) { return document.getElementById(s_id) };
   219 
   225