79 |
|
|
80 |
function edit_template() { |
function edit_template() { |
81 |
$('div_css').style.visibility = "hidden"; |
$('div_css').style.visibility = "hidden"; |
82 |
|
$('div_css').style.zIndex = 1; |
83 |
Element.removeClassName('a_css', 'tab_selected'); |
Element.removeClassName('a_css', 'tab_selected'); |
84 |
Element.addClassName('a_template', 'tab_selected'); |
Element.addClassName('a_template', 'tab_selected'); |
85 |
$('div_template').style.visibility = "visible"; |
$('div_template').style.visibility = "visible"; |
86 |
|
$('div_template').style.zIndex = 2; |
87 |
Logger.debug("switched to template editor"); |
Logger.debug("switched to template editor"); |
88 |
var c = $('template_content'); |
var c = $('template_content'); |
89 |
if (c) c.focus(); |
if (c) c.focus(); |
90 |
|
Logger.debug('zIndex template:'+$('div_template').style.zIndex+' css:'+$('div_css').style.zIndex); |
91 |
return false; |
return false; |
92 |
} |
} |
93 |
|
|
94 |
function edit_css() { |
function edit_css() { |
95 |
$('div_template').style.visibility = "hidden"; |
$('div_template').style.visibility = "hidden"; |
96 |
|
$('div_template').style.zIndex = 1; |
97 |
Element.removeClassName('a_template', 'tab_selected'); |
Element.removeClassName('a_template', 'tab_selected'); |
98 |
Element.addClassName('a_css', 'tab_selected'); |
Element.addClassName('a_css', 'tab_selected'); |
99 |
$('div_css').style.visibility = "visible"; |
$('div_css').style.visibility = "visible"; |
100 |
|
$('div_css').style.zIndex = 2; |
101 |
Logger.debug("switched to CSS editor"); |
Logger.debug("switched to CSS editor"); |
102 |
var c = $('css_content'); |
var c = $('css_content'); |
103 |
if (c) c.focus(); |
if (c) c.focus(); |
104 |
|
Logger.debug('zIndex template:'+$('div_template').style.zIndex+' css:'+$('div_css').style.zIndex); |
105 |
return false; |
return false; |
106 |
} |
} |
107 |
|
|