mirror of
https://github.com/unraid/webgui.git
synced 2026-01-28 20:49:04 -06:00
Merge pull request #1031 from bergware/master
Fixed: spinner stays visible after docker command
This commit is contained in:
@@ -154,10 +154,10 @@ function rmImage(image, imageName) {
|
||||
function eventControl(params, spin) {
|
||||
if (spin) $('#'+params['container']).parent().find('i').removeClass('fa-play fa-square fa-pause').addClass('fa-refresh fa-spin');
|
||||
$.post(eventURL, params, function(data) {
|
||||
$('div.spinner.fixed').hide('slow');
|
||||
if (data.success === true) {
|
||||
if (spin) setTimeout(spin+'()',500); else location=window.location.href;
|
||||
} else {
|
||||
$('div.spinner.fixed').hide('slow');
|
||||
setTimeout(function(){swal({
|
||||
title:_('Execution error'), html:true,
|
||||
text:data.success, type:'error',
|
||||
|
||||
Reference in New Issue
Block a user