/[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 270 by dpavlin, Sat Dec 17 00:37:12 2005 UTC revision 272 by dpavlin, Sat Dec 17 03:20:04 2005 UTC
# Line 79  function prev_page() { Line 79  function prev_page() {
79          return false;          return false;
80  }  }
81    
82    /* toggle visibility and replace text with something else */
83    function toggleLinkAndElement ( link, elementID, text ) {
84    
85            Element.toggle( elementID ); // toggle the element
86    
87            if ( link.innerHTML != text ) {
88                    // change link text
89                    link.oldInnerHTML = link.innerHTML;
90                    link.innerHTML = text;    
91            } else {
92                    // change it back
93                    link.innerHTML = link.oldInnerHTML;
94            }
95    
96            return false;
97    }
98    
99    
100  /*  /*
101          submit results form using AJAX          submit results form using AJAX
102  */  */
# Line 239  Logger.debug('Created WebPAC.Updater Cla Line 257  Logger.debug('Created WebPAC.Updater Cla
257  Object.extend(WebPAC.Updater.prototype, {  Object.extend(WebPAC.Updater.prototype, {
258    initialize: function(container, url, options) {    initialize: function(container, url, options) {
259      Logger.debug('WebPAC.Updater initialize '+container+','+url+','+options);      Logger.debug('WebPAC.Updater initialize '+container+','+url+','+options);
260        url += '/ajax';
261      this.updater = new Ajax.Updater(container, url, options);      this.updater = new Ajax.Updater(container, url, options);
262      $('_ajax').value = 1;      $('_ajax').value = 1;
263      if ($('_ajax').value) Logger.info("using AJAX");      if ($('_ajax').value) Logger.info("using AJAX");

Legend:
Removed from v.270  
changed lines
  Added in v.272

  ViewVC Help
Powered by ViewVC 1.1.26