Had the wrong syntax for the attr property for the textbox
Socorro Stoppler (1):
Bugfix 785: Create a template from an existing image
ui/js/src/kimchi.template_add_main.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
1.9.1
Show replies by date
Signed-off-by: Socorro Stoppler <socorro(a)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
Applied. Thanks.
Regards,
Aline Manera