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