mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
bitbake: toaster: Disable add layer button when input is empty
The 'add layer' button in the project configuration page is enabled when you select a layer from the type ahead. However, if you delete the layer name, the 'add layer' button remains enabled, and if you click it, the last selected layer from the type ahead will be added to the project. It is probably better to disable the 'add layer' button when the input field is empty. [YOCTO #8449] (Bitbake rev: d4820f16c76398400ddd573db03c654c51d40c1b) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
24e5a178e1
commit
596c219bf4
@@ -103,6 +103,12 @@ function projectPageInit(ctx) {
|
||||
layerAddBtn.removeAttr("disabled");
|
||||
});
|
||||
|
||||
layerAddInput.keyup(function() {
|
||||
if ($(this).val().length == 0) {
|
||||
layerAddBtn.attr("disabled", "disabled")
|
||||
}
|
||||
});
|
||||
|
||||
layerAddBtn.click(function(e){
|
||||
e.preventDefault();
|
||||
var layerObj = currentLayerAddSelection;
|
||||
|
||||
Reference in New Issue
Block a user