summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui
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:17:24 +0000
commit63705f60035884a810fdd36e5a3fe10e411f23c7 (patch)
treeb63bfa91a33cfc2a9d276e16f6d5d508988cfecb /lib/toaster/toastergui
parentdf342e7662179410467c47cd870180ea75f863d4 (diff)
downloadbitbake-63705f60035884a810fdd36e5a3fe10e411f23c7.tar.gz
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] 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 'lib/toaster/toastergui')
-rw-r--r--lib/toaster/toastergui/static/js/projectpage.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/static/js/projectpage.js b/lib/toaster/toastergui/static/js/projectpage.js
index 4a482d78c..0666bde90 100644
--- a/lib/toaster/toastergui/static/js/projectpage.js
+++ b/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){