[Kimchi-devel] [PATCH] Bugfix: Cancel option not working properly in New Storage Define

Wen Wang wenwang at linux.vnet.ibm.com
Tue Sep 23 06:18:39 UTC 2014


From: Wen Wang <wenwang at linux.vnet.ibm.com>

This bug fix the defect that when adding a new logical storage pool, a
confrim message box show up and when canceling it, the inputbox as well
as button "Create" is still disabled.

Signed-off-by: Wen Wang <wenwang at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.storagepool_add_main.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ui/js/src/kimchi.storagepool_add_main.js b/ui/js/src/kimchi.storagepool_add_main.js
index 4f1f943..d926ad7 100644
--- a/ui/js/src/kimchi.storagepool_add_main.js
+++ b/ui/js/src/kimchi.storagepool_add_main.js
@@ -409,6 +409,9 @@ kimchi.addPool = function(event) {
                     $('#pool-doAdd').show();
                 });
             }, function() {
+                $('input', '#form-pool-add').removeAttr('disabled');
+                $('#pool-loading').hide();
+                $('#pool-doAdd').show();
             });
         } else {
             kimchi.createStoragePool(formData, function() {
-- 
1.7.1




More information about the Kimchi-devel mailing list