[Kimchi-devel] [PATCH] Bug Fix - Save Button Behaves Incorrectly in Guest Edit Window
Hongliang Wang
hlwang at linux.vnet.ibm.com
Fri Jun 6 07:02:24 UTC 2014
There are 3 tabs in guest edit window and only the first tab needs
save button visible. Though in some cases, it will appear in other
tabs. Fixed it in this patch.
Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_edit_main.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index 90dcb32..9ff1a95 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -19,12 +19,12 @@ kimchi.guest_edit_main = function() {
var buttonContainer = $('#action-button-container');
$('#guest-edit-tabs').tabs({
beforeActivate: function(event, ui) {
- var deactivated = ui['oldPanel'];
+ var deactivated = ui['newPanel'];
if($(deactivated).attr('id') === 'form-guest-edit-general') {
- $(buttonContainer).addClass('hidden');
+ $(buttonContainer).removeClass('hidden');
}
else {
- $(buttonContainer).removeClass('hidden');
+ $(buttonContainer).addClass('hidden');
}
}
});
--
1.8.1.4
More information about the Kimchi-devel
mailing list