Commit 474122de authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Merge branch 'ui-0.5'

parents af3c61a2 cd5e92c3
......@@ -41,6 +41,7 @@ var last_request = {};
var CHANGES_SINCE_ERRORS = 0;
$.ajaxSetup({
'cache': false,
'beforeSend': function(xhr) {
// save ajax settings, we might need them for error reporting
last_request = this;
......
......@@ -205,15 +205,15 @@ or implied, of GRNET S.A.
// ajax error checking
function ajax_error(status, serverID, action, responseText, ajax_settings) {
// flag to display or not error report link
var allow_report = ajax_settings.disable_report ? false : true;
var no_details = ajax_settings.no_details === undefined || ajax_settings.no_details === false ? false : true;
var error_date = new Date();
if (!ajax_settings) {
ajax_settings = {};
}
// flag to display or not error report link
var allow_report = ajax_settings.disable_report ? false : true;
var no_details = ajax_settings.no_details === undefined || ajax_settings.no_details === false ? false : true;
// close existing overlays to begin with
close_all_overlays();
// clear old deferred calls (stops all auto-updates)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment