[Kimchi-devel] [PATCH] Issue#366: Guest Name Can't be Changed

Hongliang Wang hlwang at linux.vnet.ibm.com
Thu Apr 10 08:27:12 UTC 2014


When changing a guest name in Guest Tab, the change takes no effect because of
a UI bug. Fix it in this patch.

Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.guest_edit_main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index 9375c51..b771263 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -119,7 +119,7 @@ kimchi.guest_edit_main = function() {
         var editableFields = [ 'name' ];
         var data = {};
         $.each(editableFields, function(i, field) {
-            data[field] = $('#form-guest-edit [name="' + field + '"]').val();
+            data[field] = $('input[name="' + field + '"]', guestEditForm).val();
         });
         kimchi.updateVM(kimchi.selectedGuest, data, function() {
             kimchi.listVmsAuto();
-- 
1.8.1.4




More information about the Kimchi-devel mailing list