mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
fdb5639e90
commit
d8d0db1701
@@ -245,15 +245,15 @@ function importLayerPageInit (ctx) {
|
||||
enable_import_btn(true);
|
||||
}
|
||||
|
||||
vcsURLInput.keyup(function() {
|
||||
vcsURLInput.on('input', function() {
|
||||
check_form();
|
||||
});
|
||||
|
||||
gitRefInput.keyup(function() {
|
||||
gitRefInput.on('input', function() {
|
||||
check_form();
|
||||
});
|
||||
|
||||
layerNameInput.keyup(function() {
|
||||
layerNameInput.on('input', function() {
|
||||
if ($(this).val() && !validLayerName.test($(this).val())){
|
||||
layerNameCtrl.addClass("error")
|
||||
$("#invalid-layer-name-hint").show();
|
||||
|
||||
Reference in New Issue
Block a user