summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-06 19:18:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-17 14:38:31 +0000
commitd8d0db1701b4ccc0668041f84813c2e4ca57bee9 (patch)
tree3db5b0c667471c2805e1f5f89b3161b1eb3fd965 /bitbake/lib/toaster/toastergui/templates
parentfdb5639e906779814e8454b8fc696c25e8c7a870 (diff)
downloadast2050-yocto-poky-d8d0db1701b4ccc0668041f84813c2e4ca57bee9.zip
ast2050-yocto-poky-d8d0db1701b4ccc0668041f84813c2e4ca57bee9.tar.gz
bitbake: toaster: Use on input event for validation rather than keyup
Avoid using keyup event to trigger form validation as this won't fire for events such as pasting or autofill from the browser. [YOCTO #7292] (Bitbake rev: 2060be8d31baa0cd302aa8dc0b6d179df853ee99) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/newproject.html2
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectconf.html8
2 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html
index 0265564..dcb6590 100644
--- a/bitbake/lib/toaster/toastergui/templates/newproject.html
+++ b/bitbake/lib/toaster/toastergui/templates/newproject.html
@@ -72,7 +72,7 @@
$('.btn-primary').attr('disabled', 'disabled');
// enable submit button when all required fields are populated
- $("input#new-project-name").keyup(function() {
+ $("input#new-project-name").on('input', function() {
if ($("input#new-project-name").val().length > 0 ){
$('.btn-primary').removeAttr('disabled');
$(".help-inline").css('visibility','hidden');
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html
index edcad18..0d38a92 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectconf.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html
@@ -269,7 +269,7 @@
});
});
- $(".js-new-config_var").keyup(function(){
+ $(".js-new-config_var").on('input', function(){
if ($(this).val().length == 0) {
$(".js-apply-change-config_var").attr("disabled","disabled");
}
@@ -386,7 +386,7 @@
});
});
- $("#new-distro").keyup(function(){
+ $("#new-distro").on('input', function(){
if ($(this).val().length == 0) {
$("#apply-change-distro").attr("disabled","disabled");
}
@@ -469,7 +469,7 @@
});
});
- $("#new-image_install").keyup(function(){
+ $("#new-image_install").on('input', function(){
if ($(this).val().length == 0) {
$("#apply-change-image_install").attr("disabled","disabled");
}
@@ -629,7 +629,7 @@
});
//activate / deactivate save added variable button
- $("#variable, #value").keyup(function() {
+ $("#variable, #value").on('input', function() {
if ( $("#variable").val().length > 0 && $("#value").val().trim().length > 0 ) {
$(".save").removeAttr("disabled");
}
OpenPOWER on IntegriCloud