diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-02-06 19:18:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 14:38:31 +0000 |
commit | d8d0db1701b4ccc0668041f84813c2e4ca57bee9 (patch) | |
tree | 3db5b0c667471c2805e1f5f89b3161b1eb3fd965 /bitbake/lib/toaster/toastergui/templates/projectconf.html | |
parent | fdb5639e906779814e8454b8fc696c25e8c7a870 (diff) | |
download | 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/projectconf.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/projectconf.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html index edcad1821f..0d38a9228b 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectconf.html +++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html | |||
@@ -269,7 +269,7 @@ | |||
269 | }); | 269 | }); |
270 | }); | 270 | }); |
271 | 271 | ||
272 | $(".js-new-config_var").keyup(function(){ | 272 | $(".js-new-config_var").on('input', function(){ |
273 | if ($(this).val().length == 0) { | 273 | if ($(this).val().length == 0) { |
274 | $(".js-apply-change-config_var").attr("disabled","disabled"); | 274 | $(".js-apply-change-config_var").attr("disabled","disabled"); |
275 | } | 275 | } |
@@ -386,7 +386,7 @@ | |||
386 | }); | 386 | }); |
387 | }); | 387 | }); |
388 | 388 | ||
389 | $("#new-distro").keyup(function(){ | 389 | $("#new-distro").on('input', function(){ |
390 | if ($(this).val().length == 0) { | 390 | if ($(this).val().length == 0) { |
391 | $("#apply-change-distro").attr("disabled","disabled"); | 391 | $("#apply-change-distro").attr("disabled","disabled"); |
392 | } | 392 | } |
@@ -469,7 +469,7 @@ | |||
469 | }); | 469 | }); |
470 | }); | 470 | }); |
471 | 471 | ||
472 | $("#new-image_install").keyup(function(){ | 472 | $("#new-image_install").on('input', function(){ |
473 | if ($(this).val().length == 0) { | 473 | if ($(this).val().length == 0) { |
474 | $("#apply-change-image_install").attr("disabled","disabled"); | 474 | $("#apply-change-image_install").attr("disabled","disabled"); |
475 | } | 475 | } |
@@ -629,7 +629,7 @@ | |||
629 | }); | 629 | }); |
630 | 630 | ||
631 | //activate / deactivate save added variable button | 631 | //activate / deactivate save added variable button |
632 | $("#variable, #value").keyup(function() { | 632 | $("#variable, #value").on('input', function() { |
633 | if ( $("#variable").val().length > 0 && $("#value").val().trim().length > 0 ) { | 633 | if ( $("#variable").val().length > 0 && $("#value").val().trim().length > 0 ) { |
634 | $(".save").removeAttr("disabled"); | 634 | $(".save").removeAttr("disabled"); |
635 | } | 635 | } |