From: Belen Barros Pena Date: Mon, 22 Feb 2016 09:08:35 +0000 (+0000) Subject: toaster: disable add layer button on click X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63705f60035884a810fdd36e5a3fe10e411f23c7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/static/js/projectpage.js b/lib/toaster/toastergui/static/js/projectpage.js index 4a482d78cae..0666bde907f 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){