/[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 193 by dpavlin, Tue Nov 29 14:31:26 2005 UTC revision 207 by dpavlin, Sat Dec 3 22:25:49 2005 UTC
# Line 173  function load_template( template_filenam Line 173  function load_template( template_filenam
173          } ) ;          } ) ;
174  }  }
175    
176  function load_css(css_filename) {  function load_css( css_filename ) {
177    
178          if (loading.css) {          if (loading.css) {
179                  Logger.info('loading of css '+css_filename+' skipped, load in progress');                  Logger.info('loading of css '+css_filename+' skipped, load in progress');
180                  return;                  return;
181          }          }
182    
183          Logger.info('load_css '+css_filename);          var css_url = url + 'css?css_filename='+css_filename;
184    
185            Logger.info('load_css '+css_url);
186    
187          show_working();          show_working();
188    
189          new Ajax.Updater( 'row_css',  url+'css', {          new Ajax.Updater( 'row_css', css_url, {
190                  asynchronous: 1,                  asynchronous: 1,
191                  onLoading: function(request) {                  onLoading: function(request) {
192                          loading.css = 1;                          loading.css = 1;
# Line 204  function reload_css( css_filename ) { Line 206  function reload_css( css_filename ) {
206          if (! css_filename) css_filename = 'user.css';          if (! css_filename) css_filename = 'user.css';
207    
208          css_rnd++;          css_rnd++;
209          var css_url = url + 'css/' + css_filename + '?' + css_rnd;          var css_url = '/css/' + css_filename + '?' + css_rnd;
210          Logger.info('reload_css from '+css_url);          Logger.info('reload_css from '+css_url);
211          $('user_css_link').href = css_url;          $('user_css_link').href = css_url;
212    
# Line 226  function hide_working() { Line 228  function hide_working() {
228  }  }
229    
230  function init_page() {  function init_page() {
   
231          show_working();          show_working();
232    
233          edit_template();          edit_template();
234    
         // load css editor  
         load_css();  
   
         // load template editor and record  
         switch_template(template_filename);  
   
235          hide_working();          hide_working();
   
236  }  }
237    

Legend:
Removed from v.193  
changed lines
  Added in v.207

  ViewVC Help
Powered by ViewVC 1.1.26