]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: BuildButton target input allow building targets with tasks
authorMichael Wood <michael.g.wood@intel.com>
Fri, 27 Mar 2015 15:49:54 +0000 (15:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Apr 2015 10:53:34 +0000 (11:53 +0100)
Allow the input for targets to contain tasks in the form target:task

[YOCTO #7501]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
lib/toaster/toastergui/static/js/base.js

index 241c5d2e0c7dbeefdf6b5e356a9a55746052e661..667c5dff6c71e81b0eb7e95f7e88f00e5b7c8d7d 100644 (file)
@@ -88,10 +88,9 @@ function basePageInit (ctx) {
       if (!newBuildTargetInput.val())
         return;
 
-      if (!selectedTarget)
-        selectedTarget = { name: newBuildTargetInput.val() };
+      var selectedTargetName = newBuildTargetInput.val();
       /* fire and forget */
-      libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null);
+      libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTargetName, null, null);
       window.location.replace(ctx.projectPageUrl+ctx.projectId);
     });