[Kimchi-devel] [PATCH] [Kimchi] Issue #847: Save button is having wrong behavior when edit a running Guest
sguimaraes943 at gmail.com
sguimaraes943 at gmail.com
Tue Mar 15 21:07:33 UTC 2016
From: Samuel Guimarães <sguimaraes943 at gmail.com>
Signed-off-by: Samuel Guimarães <sguimaraes943 at 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
More information about the Kimchi-devel
mailing list