[Kimchi-devel] [PATCH] [Kimchi] Bugfix 786: Undefine button enabled for active storage pool
Socorro Stoppler
socorro at linux.vnet.ibm.com
Thu Dec 3 22:06:17 UTC 2015
Signed-off-by: Socorro Stoppler <socorro at linux.vnet.ibm.com>
---
ui/js/src/kimchi.storage_main.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/js/src/kimchi.storage_main.js b/ui/js/src/kimchi.storage_main.js
index 8ed896c..b00af21 100644
--- a/ui/js/src/kimchi.storage_main.js
+++ b/ui/js/src/kimchi.storage_main.js
@@ -175,9 +175,9 @@ kimchi.storageBindClick = function() {
var storage_action = $(this);
var deleteButton = storage_action.find('.pool-delete');
if ('active' === deleteButton.data('stat')) {
- deleteButton.attr('disabled', 'disabled');
+ deleteButton.parent().addClass('disabled');
} else {
- deleteButton.removeAttr('disabled');
+ deleteButton.parent().removeClass('disabled');
}
});
@@ -504,4 +504,4 @@ kimchi.changeArrow = function(obj) {
} else {
$(obj).removeClass('arrow-up').addClass('arrow-down');
}
-}
\ No newline at end of file
+}
--
1.9.1
More information about the Kimchi-devel
mailing list