If any ajax calls fail and debug is enabled log the error to the console.
(Bitbake rev:
978ab17033ec48ee0a82016b7e4d6a2fe5d21dbb)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
$("#loading-notification").fadeOut();
});
+ $(document).ajaxError(function(event, jqxhr, settings, errMsg){
+ console.warn("Problem with xhr call");
+ console.warn(errMsg);
+ console.warn(jqxhr.responseText);
+ });
function check_for_duplicate_ids () {
/* warn about duplicate element ids */
tableData: tableData,
tableParams: tableParams
}, null, libtoaster.dumpsUrlParams(tableParams));
- },
-
- error: function (_data) {
- console.warn("Call failed");
- console.warn(_data);
}
});
}