summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/apps.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/js/apps.js b/www/js/apps.js
index 99ae50d..59ab50f 100644
--- a/www/js/apps.js
+++ b/www/js/apps.js
@@ -97,6 +97,13 @@ function apps_init() {
apps_select(locationHrefValue());
}
});
+
+ $(document).ajaxError(function(event, jqXHR, settings, thrownError) {
+ var data = jqXHR.responseText;
+ var errorString = $(data).find('ErrorString').text();
+ var ResponseCode = $(data).find('ResponseCode').text();
+ alert(ResponseCode + ': ' + errorString);
+ });
}
function apps_cleanup() {