From d8d0db1701b4ccc0668041f84813c2e4ca57bee9 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 6 Feb 2015 19:18:19 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/toastergui/static/js/layerdetails.js') 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) { }); /* Disable the change button when we have no data in the input */ - $("dl input, dl textarea").keyup(function() { + $("dl input, dl textarea").on("input",function() { if ($(this).val().length == 0) $(this).parent().children(".change-btn").attr("disabled", "disabled"); else -- cgit v1.2.3-54-g00ecf