/[webpac2]/Webpacus/root/js/webpac.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/js/webpac.js

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

revision 278 by dpavlin, Sat Dec 17 11:53:40 2005 UTC revision 279 by dpavlin, Sat Dec 17 22:20:23 2005 UTC
# Line 277  Logger.debug('Created WebPAC.Updater Cla Line 277  Logger.debug('Created WebPAC.Updater Cla
277  Object.extend(WebPAC.Updater.prototype, {  Object.extend(WebPAC.Updater.prototype, {
278    initialize: function(container, url, options) {    initialize: function(container, url, options) {
279      Logger.debug('WebPAC.Updater initialize '+container+','+url+','+options);      Logger.debug('WebPAC.Updater initialize '+container+','+url+','+options);
280      url += '/ajax';      if (url.indexOf('/ajax') == -1) {
281          var pos = url.indexOf('?');
282          if (pos == -1) {
283            url += '/ajax';
284          } else {
285            url = url.substring(0,pos) + '/ajax' + url.substring(pos);
286          }
287          Logger.debug('added /ajax to '+url+' pos:'+pos);
288        }
289        Logger.info('using AJAX to update "'+container+'" from '+url);
290      this.updater = new Ajax.Updater(container, url, options);      this.updater = new Ajax.Updater(container, url, options);
291      $('_ajax').value = 1;      $('_ajax').value = 1;
     if ($('_ajax').value) Logger.info("using AJAX");  
292    }    }
293  });  });
294    

Legend:
Removed from v.278  
changed lines
  Added in v.279

  ViewVC Help
Powered by ViewVC 1.1.26