Project

General

Profile

« Previous | Next » 

Revision 5747fbe1

Added by Timo Goebel over 7 years ago

fixes #18250 - show compute resource xhr errors

View differences:

app/assets/javascripts/compute_resource.js
var url = $(this).attr('data-url');
$(this).load(url + ' table', function(response, status, xhr) {
if (status == "error") {
$(this).closest(".tab-content").find("#spinner").html(Jed.sprintf(__("There was an error listing VMs: %(status)s %(statusText)s"), {status: xhr.status, statusText: xhr.statusText}));
$(this).html(Jed.sprintf(__("There was an error listing VMs: %(status)s %(statusText)s"), {status: xhr.status, statusText: xhr.statusText}));
}
else {
tfm.tools.activateDatatables();

Also available in: Unified diff