summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
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/static/js/layerdetails.js
parentfdb5639e906779814e8454b8fc696c25e8c7a870 (diff)
downloadpoky-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/static/js/layerdetails.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerdetails.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 99552de8c1..2e713d5a0f 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
@@ -353,7 +353,7 @@ function layerDetailsPageInit (ctx) {
353 }); 353 });
354 354
355 /* Disable the change button when we have no data in the input */ 355 /* Disable the change button when we have no data in the input */
356 $("dl input, dl textarea").keyup(function() { 356 $("dl input, dl textarea").on("input",function() {
357 if ($(this).val().length == 0) 357 if ($(this).val().length == 0)
358 $(this).parent().children(".change-btn").attr("disabled", "disabled"); 358 $(this).parent().children(".change-btn").attr("disabled", "disabled");
359 else 359 else