mirror of
https://git.yoctoproject.org/poky
synced 2026-04-07 23:02:22 +02:00
bitbake: toaster: Add global ajaxError handler
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>
This commit is contained in:
committed by
Richard Purdie
parent
0573e2d31c
commit
4f459fca79
@@ -503,6 +503,11 @@ $(document).ready(function() {
|
||||
$("#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 */
|
||||
|
||||
@@ -53,11 +53,6 @@ function tableInit(ctx){
|
||||
tableData: tableData,
|
||||
tableParams: tableParams
|
||||
}, null, libtoaster.dumpsUrlParams(tableParams));
|
||||
},
|
||||
|
||||
error: function (_data) {
|
||||
console.warn("Call failed");
|
||||
console.warn(_data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user