summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/projecttopbar.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projecttopbar.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js b/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
index b6ad380c19..58a32a056e 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
@@ -7,7 +7,10 @@ function projectTopBarInit(ctx) {
7 var projectName = $("#project-name"); 7 var projectName = $("#project-name");
8 var projectNameFormToggle = $("#project-change-form-toggle"); 8 var projectNameFormToggle = $("#project-change-form-toggle");
9 var projectNameChangeCancel = $("#project-name-change-cancel"); 9 var projectNameChangeCancel = $("#project-name-change-cancel");
10
11 // this doesn't exist for command-line builds
10 var newBuildTargetInput = $("#build-input"); 12 var newBuildTargetInput = $("#build-input");
13
11 var newBuildTargetBuildBtn = $("#build-button"); 14 var newBuildTargetBuildBtn = $("#build-button");
12 var selectedTarget; 15 var selectedTarget;
13 16
@@ -42,6 +45,12 @@ function projectTopBarInit(ctx) {
42 $(this).parent().removeClass('active'); 45 $(this).parent().removeClass('active');
43 }); 46 });
44 47
48 if (!newBuildTargetInput.length) {
49 return;
50 }
51
52 /* the following only applies for non-command-line projects */
53
45 /* Recipe build input functionality */ 54 /* Recipe build input functionality */
46 if (ctx.numProjectLayers > 0 && ctx.machine){ 55 if (ctx.numProjectLayers > 0 && ctx.machine){
47 newBuildTargetInput.removeAttr("disabled"); 56 newBuildTargetInput.removeAttr("disabled");