After clicking on "Search More ISOs", the button kept enabled, so user
can click it again and again. So disable the button, when the operation
is in progress to avoid multiple requests for the same thing.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.template_add_main.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/js/src/kimchi.template_add_main.js
b/ui/js/src/kimchi.template_add_main.js
index aa76fcc..ebb5c12 100644
--- a/ui/js/src/kimchi.template_add_main.js
+++ b/ui/js/src/kimchi.template_add_main.js
@@ -213,6 +213,7 @@ kimchi.template_add_main = function() {
wok.confirm(settings, function() {
$('#iso-more').hide();
$('#iso-more-loading').show();
+ $('#iso-more-loading').attr('disabled', 'disabled');
deepScan('#iso-more');
});
});
--
2.5.5