summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-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