Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B0C38E00978; Tue, 17 Nov 2015 03:57:47 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.42 listed in list.dnswl.org] Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 747F5E008B8 for ; Tue, 17 Nov 2015 03:57:43 -0800 (PST) Received: by wmww144 with SMTP id w144so150385827wmw.1 for ; Tue, 17 Nov 2015 03:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=5YbJIkKwfyFS6lS7Xi5RLVzKkY8anPQD5ULZWP4iZzo=; b=hiwttx7ns1Ac57/4do9ggTSMudS0C28Bmj6dzVcncYXXr4YGBGrcoCNPg6veij19Ry yi9/6fDaPhtomJjxZaLi9yVVGXWa7vyZbBDsntdVcnRtP89fXkY8+Nxx46Yyh559vpSh 67Xhtl9UYKJ9KhiSdDEjY8aspOuYzRN3RsDqHylt4yEyTyaHo7ksKOVKVTDDVzHAWkk4 76JkXvBhd/xqrpDcW03oe///HFa4IGw1is9OYKqfvMFuN3maMWKJM7nrH+PjxoUj2Z+r M8otNX6Lyk7VxdAZXXz9hYhCtLhuZGi6MJN0sy0F/uUrcbBWb49Fhv9T6Qg4PP7RxikK jtyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5YbJIkKwfyFS6lS7Xi5RLVzKkY8anPQD5ULZWP4iZzo=; b=M0NyBBVX8SVh0bFctbak3ZPSOok5f/h03739ICK563Aj6mXOX80CW93N1nJ1//Fn8r o0Gzlos2Yfp9ecxWqe5eBKvG98uHA5B4N4tpz8ONhcYrECM97ZEswpRG0TF7OKuyxI4l z2Utllebnb37EPpiip0+0mt5xu7mGlwpfOZCp7A2UCEptlZ4CAoFIZmapPoc21wWA0G4 V7RDM2GljJ6T+Bh2oRdRbbYDk7lRax2rMzaSbQOX2uvyJw0wPs9uc+fVgIZRXjLU1YlJ n3T4FKvgm/PI+d/p/xxVxlCkGV8XK8WRA7zL7OOgcwZXqLb2Up8d/j8hcsHF8DCk9cSB v14Q== X-Gm-Message-State: ALoCoQliJL2Frp2yJgUT2xVxdZNQN59BYJ4pbNQUhBPNOVDbd7ki3U71CQNn+lH5wAKP/TzyA14y X-Received: by 10.194.82.202 with SMTP id k10mr50164286wjy.85.1447761462948; Tue, 17 Nov 2015 03:57:42 -0800 (PST) Received: from localhost.localdomain ([90.199.203.61]) by smtp.gmail.com with ESMTPSA id v4sm30037975wjx.18.2015.11.17.03.57.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 03:57:42 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 17 Nov 2015 11:57:38 +0000 Message-Id: <1447761458-22686-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 Subject: [PATCH] toaster: projectpage Make sure build targets are space separated X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2015 11:57:47 -0000 Make sure the build targets are space separated when building multiple targets. Also fix error path now that YOCTO #7995 is resolved. [YOCTO #8450] Signed-off-by: Michael Wood --- .../toaster/toastergui/static/js/projectpage.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js index ae08d9a..8cbfa9e 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js @@ -225,17 +225,21 @@ function projectPageInit(ctx) { var toBuild = ""; freqBuildList.find(":checked").each(function(){ - toBuild += $(this).val(); + toBuild += $(this).val() + ' '; }); - libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, libtoaster.ctx.projectId, toBuild, function(){ - /* Build started */ - window.location.replace(libtoaster.ctx.projectBuildsUrl); - }, - function(){ - /* Build start failed */ - /* [YOCTO #7995] */ - window.location.replace(libtoaster.ctx.projectBuildsUrl); + toBuild = toBuild.trim(); + + libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, + libtoaster.ctx.projectId, + toBuild, + function(){ + /* Build request started */ + window.location.replace(libtoaster.ctx.projectBuildsUrl); + }, + function(){ + /* Build request failed */ + console.warn("Build request failed to be created"); }); }); -- 2.5.0