Revision 8e136701
Added by Daniel Lobato Garcia over 7 years ago
app/assets/javascripts/compute_resources/openstack/host_edit.js | ||
---|---|---|
} else {
|
||
var url = $(item).attr('data-url');
|
||
var data = serializeForm().replace('method=patch', 'method=post');
|
||
foreman.tools.showSpinner();
|
||
tfm.tools.showSpinner();
|
||
$.ajax({
|
||
type:'post',
|
||
url: url,
|
||
data: data,
|
||
complete: function(){
|
||
foreman.tools.hideSpinner();
|
||
tfm.tools.hideSpinner();
|
||
},
|
||
error: function(jqXHR, status, error){
|
||
$('#scheduler_hint_wrapper').html(Jed.sprintf(__("Error loading scheduler hint filters information: %s"), error));
|
||
... | ... | |
}
|
||
})
|
||
}
|
||
}
|
||
}
|
Also available in: Unified diff
Fixes #17858 - OpenStack scheduler doesn't show spinner
Foreman does not show the spinner when the OpenStack scheduler hints are
loading, instead it just shows a javascript error.
(cherry picked from commit 7d71275255271ec8cebe12ca30645ed9299f189d)