aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/static/js/projecttopbar.js
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-01-15 13:00:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-15 16:28:59 +0000
commit87bcfb740dd2d9944e35a2a1f71cbf8ff3b266e9 (patch)
tree787b2efb6bd8a9136bd6f38336c763ecc2366fe9 /lib/toaster/toastergui/static/js/projecttopbar.js
parentf17cfa009e58833e0e55884fa04de8abd522b6bc (diff)
downloadbitbake-contrib-87bcfb740dd2d9944e35a2a1f71cbf8ff3b266e9.tar.gz
toastergui: convert project builds page to ToasterTable
Use the all builds ToasterTable as the basis for the project builds ToasterTable. [YOCTO #8738] Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/static/js/projecttopbar.js')
-rw-r--r--lib/toaster/toastergui/static/js/projecttopbar.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/static/js/projecttopbar.js b/lib/toaster/toastergui/static/js/projecttopbar.js
index b6ad380c1..58a32a056 100644
--- a/lib/toaster/toastergui/static/js/projecttopbar.js
+++ b/lib/toaster/toastergui/static/js/projecttopbar.js
@@ -7,7 +7,10 @@ function projectTopBarInit(ctx) {
var projectName = $("#project-name");
var projectNameFormToggle = $("#project-change-form-toggle");
var projectNameChangeCancel = $("#project-name-change-cancel");
+
+ // this doesn't exist for command-line builds
var newBuildTargetInput = $("#build-input");
+
var newBuildTargetBuildBtn = $("#build-button");
var selectedTarget;
@@ -42,6 +45,12 @@ function projectTopBarInit(ctx) {
$(this).parent().removeClass('active');
});
+ if (!newBuildTargetInput.length) {
+ return;
+ }
+
+ /* the following only applies for non-command-line projects */
+
/* Recipe build input functionality */
if (ctx.numProjectLayers > 0 && ctx.machine){
newBuildTargetInput.removeAttr("disabled");