[Kimchi-devel] [PATCH 1/2] Issue #405 - Fix cancel button in edit guest storage tab

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Fri Aug 22 15:47:22 UTC 2014


When the user is in storage tab in edit guest window, he can clicks on
'replace' button in order to change the ISO path. However, if user types
anything in the path input box and wants to cancel the changes, turns
out that the 'cancel' button was not restoring previous value. This patch
fixed this problem.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.guest_edit_main.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index 01d8045..99ab491 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -85,6 +85,7 @@ kimchi.guest_edit_main = function() {
             var pathBox = $('.path input', rowNode)
                 .prop('readonly', !toEdit);
             toEdit && pathBox.select();
+            pathBox.val(pathBox.attr('value'));
         };
 
         var replaceCDROM = function(event) {
-- 
1.9.3




More information about the Kimchi-devel mailing list