[PATCH] [Kimchi] Bugfix 786: Undefine button enabled for active storage pool

Undefine button is no longer enabled when storage pool is active Had to use a different function call to disable the 'Undefine' 'button' since this was no longer defined as a 'button' but rather a link. .attr or .prop do not work on links. Socorro Stoppler (1): Bugfix 786: Undefine button enabled for active storage pool ui/js/src/kimchi.storage_main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 1.9.1

Signed-off-by: Socorro Stoppler <socorro@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
participants (2)
-
Aline Manera
-
Socorro Stoppler