From: Samuel Guimarães <sguimaraes943(a)gmail.com>
This patch addresses the Save Button in Edit Guests modal window when the user switches to
different tabs and goes back to General tab if a VM is running.
Samuel Guimarães (1):
Issue #847: Save button is having wrong behavior when edit a running
Guest
ui/js/src/kimchi.guest_edit_main.js | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
--
1.9.3
Show replies by date
From: Samuel Guimarães <sguimaraes943(a)gmail.com>
Signed-off-by: Samuel Guimarães <sguimaraes943(a)gmail.com>
---
ui/js/src/kimchi.guest_edit_main.js | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index 40d8189..9054eec 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -24,12 +24,7 @@ kimchi.guest_edit_main = function() {
$('#guest-edit-window
a[data-toggle="tab"]').on('show.bs.tab', function(tab) {
tab.target; // newly activated tab
tab.relatedTarget; // previous active tab
- var display_list = null;
- if (kimchi.thisVMState === "running") {
- display_list = ['form-guest-edit-permission'];
- } else {
- display_list = ['form-guest-edit-general',
'form-guest-edit-permission'];
- }
+ var display_list = ['form-guest-edit-general',
'form-guest-edit-permission'];
$(saveButton).prop('disabled', true);
formTargetId = $(tab.target).data('id');
var deactivated = $('form#' + formTargetId);
--
1.9.3
Applied. Thanks.
Regards,
Aline Manera