/[webpac2]/Webpacus/root/editor/editor.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/editor/editor.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 170 by dpavlin, Sun Nov 27 00:50:27 2005 UTC revision 171 by dpavlin, Sun Nov 27 00:50:32 2005 UTC
# Line 79  var current_edit = ''; Line 79  var current_edit = '';
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    

Legend:
Removed from v.170  
changed lines
  Added in v.171

  ViewVC Help
Powered by ViewVC 1.1.26