From: Samuel Guimarães <sguimaraes943(a)gmail.com>
Signed-off-by: Samuel Guimarães <sguimaraes943(a)gmail.com>
---
ui/js/src/kimchi.api.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index ce93d7d..740d922 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -532,18 +532,22 @@ var kimchi = {
var taskStatus = result['status'];
switch(taskStatus) {
case 'running':
+ $('html').addClass('in-progress');
progress && progress(result);
setTimeout(function() {
kimchi.trackTask(taskID, suc, err, progress);
}, 2000);
break;
case 'finished':
+ $('html').removeClass('in-progress');
suc && suc(result);
break;
case 'failed':
+ $('html').removeClass('in-progress');
err && err(result);
break;
default:
+ $('html').removeClass('in-progress');
break;
}
};
--
1.9.3