summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 1638196..d763230 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -261,24 +261,27 @@ function widgetAjax(widget) {
uri = "widgets/widgets/" + widget + ".widget.php";
var opt = {
// Use GET
- method: 'get',
+ type: 'get',
evalScripts: 'true',
- asynchronous: true,
+ async: true,
// Handle 404
- on404: function(t) {
- alert('Error 404: location "' + t.statusText + '" was not found.');
+ statusCode: {
+ 404: function(t) {
+ alert('Error 404: location "' + t.statusText + '" was not found.');
+ }
},
// Handle other errors
- onFailure: function(t) {
+ error: function(t) {
alert('Error ' + t.status + ' -- ' + t.statusText);
},
- onSuccess: function(t) {
+ success: function(data) {
widget2 = widget + "-loader";
Effect.Fade(widget2, {queue:'front'});
Effect.Appear(widget, {queue:'end'});
+ jQuery('#' + widget).html(data);
}
}
- new Ajax.Updater(widget, uri, opt);
+ jQuery.ajax(uri, opt);
}
OpenPOWER on IntegriCloud