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 |
*/ |
*/ |
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"); |