bitbake: toaster: disable add layer button on click
The 'add layer' button in the project configuration page remains enabled after you add a layer. If you click it again, the same layer you just added is added again. This patch disables the 'add layer' button on click, to avoid this bit of weirdness. [YOCTO #8905] (Bitbake rev: 63705f60035884a810fdd36e5a3fe10e411f23c7) 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:
parent
d4a663a701
commit
6c51f0850f
|
@ -116,6 +116,8 @@ function projectPageInit(ctx) {
|
|||
addRmLayer(layerObj, true);
|
||||
/* Reset the text input */
|
||||
layerAddInput.val("");
|
||||
/* Disable the add layer button*/
|
||||
layerAddBtn.attr("disabled", "disabled");
|
||||
});
|
||||
|
||||
function addRmLayer(layerObj, add){
|
||||
|
|
Loading…
Reference in New Issue