aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2016-02-22 09:08:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-26 17:20:16 +0000
commit6c51f0850f11c60c38e12530b26ba06bb3e9c3c4 (patch)
tree75211ff97d1541863a7249c76e078f750421769d /bitbake
parentd4a663a70162afbd8e482d3fd858f4a7f6c956f7 (diff)
downloadopenembedded-core-contrib-6c51f0850f11c60c38e12530b26ba06bb3e9c3c4.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projectpage.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
index 4a482d78ca..0666bde907 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
@@ -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){