summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-11-13 13:48:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:55:07 +0000
commite9d4962a0c1c7ed6861fd11a33b06e81f1121aa3 (patch)
treebbc695059a49b2d282295c3a8b68f23408b07628 /bitbake
parent5fa4c736038b09ae545e22e46f414d398b5a177c (diff)
downloadpoky-e9d4962a0c1c7ed6861fd11a33b06e81f1121aa3.tar.gz
bitbake: toaster: projectpage Disable/Enable build input if we have 0 layers
If we've removed all the layers in the configuration, disable the build button and build input. (Bitbake rev: 872bd5ccf58236f5146b1640cc1c465b58371e44) Signed-off-by: Michael Wood <michael.g.wood@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.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
index e742ef291a..ae08d9a857 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
@@ -175,11 +175,18 @@ function projectPageInit(ctx) {
175 175
176 function updateLayersCount(){ 176 function updateLayersCount(){
177 var count = $("#layers-in-project-list").children().length; 177 var count = $("#layers-in-project-list").children().length;
178 var noLayerMsg = $("#no-layers-in-project");
179 var buildInput = $("#build-input");
178 180
179 if (count === 0) 181
182 if (count === 0) {
183 noLayerMsg.fadeIn();
180 $("#no-layers-in-project").fadeIn(); 184 $("#no-layers-in-project").fadeIn();
181 else 185 buildInput.attr("disabled", "disabled");
182 $("#no-layers-in-project").hide(); 186 } else {
187 noLayerMsg.hide();
188 buildInput.removeAttr("disabled");
189 }
183 190
184 $("#project-layers-count").text(count); 191 $("#project-layers-count").text(count);
185 192