summaryrefslogtreecommitdiffstats
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)
downloadpoky-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) {
116 addRmLayer(layerObj, true); 116 addRmLayer(layerObj, true);
117 /* Reset the text input */ 117 /* Reset the text input */
118 layerAddInput.val(""); 118 layerAddInput.val("");
119 /* Disable the add layer button*/
120 layerAddBtn.attr("disabled", "disabled");
119 }); 121 });
120 122
121 function addRmLayer(layerObj, add){ 123 function addRmLayer(layerObj, add){