/[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 171 by dpavlin, Sun Nov 27 00:50:32 2005 UTC revision 172 by dpavlin, Sun Nov 27 01:42:33 2005 UTC
# Line 135  function load_template( template_filenam Line 135  function load_template( template_filenam
135                  return;                  return;
136          }          }
137    
138            show_working();
139    
140          var args = '?template_filename='+template_filename;          var args = '?template_filename='+template_filename;
141    
142          new Ajax.Updater( 'div_template',  url+'template'+args, {          new Ajax.Updater( 'div_template',  url+'template'+args, {
143                  asynchronous: 1,                  asynchronous: 1,
144                  onLoading: function(request) {                  onLoading: function(request) {
145                          loading.template = 1;                          loading.template = 1;
                         show_working();  
146                          Logger.info('load_template.onLoading: '+template_filename);                          Logger.info('load_template.onLoading: '+template_filename);
147                  },                  },
148                  onLoaded: function(request) {                  onLoaded: function(request) {
# Line 160  function load_css(css_filename) { Line 161  function load_css(css_filename) {
161                  return;                  return;
162          }          }
163    
164            show_working();
165    
166          new Ajax.Updater( 'div_css',  url+'css', {          new Ajax.Updater( 'div_css',  url+'css', {
167                  asynchronous: 1,                  asynchronous: 1,
168                  onLoading: function(request) {                  onLoading: function(request) {
169                          loading.css = 1;                          loading.css = 1;
                         show_working();  
170                          Logger.info('load_css.onLoading: '+css_filename);                          Logger.info('load_css.onLoading: '+css_filename);
171                  },                  },
172                  onLoaded: function(request) {                  onLoaded: function(request) {
# Line 176  function load_css(css_filename) { Line 178  function load_css(css_filename) {
178  };  };
179    
180  function reload_css() {  function reload_css() {
181          Logger.error('reload_css is not yet implemented!');  
182            css_rnd++;
183            Logger.info('loading user.css?'+css_rnd);
184            $('user_css_link').href = 'user.css?'+css_rnd;
185    
186          return false;          return false;
187  }  }
188    

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

  ViewVC Help
Powered by ViewVC 1.1.26