[Kimchi-devel] [PATCH] [Kimchi] Bugfix 785: Create a template from an existing image
Socorro Stoppler
socorro at linux.vnet.ibm.com
Wed Dec 2 20:02:16 UTC 2015
Signed-off-by: Socorro Stoppler <socorro at linux.vnet.ibm.com>
---
ui/js/src/kimchi.template_add_main.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/js/src/kimchi.template_add_main.js b/ui/js/src/kimchi.template_add_main.js
index 702f9d2..0b36479 100644
--- a/ui/js/src/kimchi.template_add_main.js
+++ b/ui/js/src/kimchi.template_add_main.js
@@ -508,7 +508,7 @@ kimchi.template_add_main = function() {
setTimeout(function(){
var isValid = kimchi.template_check_path($('input', '#vm-image-local-box').val());
$('input', '#vm-image-local-box').toggleClass('invalid-field', !isValid);
- $('#vm-image-local-box-button').attr('disabled', (isValid ? "false" : "true"));
+ $('#vm-image-local-box-button').attr('disabled', (isValid ? false : true));
}, 0);
});
$('button', $('#vm-image-local-box')).button({
@@ -604,4 +604,4 @@ kimchi.template_check_path = function(filePath) {
return reg.test(filePath);
}
return false;
-};
\ No newline at end of file
+};
--
1.9.1
More information about the Kimchi-devel
mailing list