summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-07-11 14:56:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 09:26:13 +0100
commitdd83c732b945ba6f9b7cdf66f6e88cfd15a745a0 (patch)
tree57866bd4929ef77d80d06339a5e137e94ff1708d
parentd25a3088150b2a277242027c12becdeb88c45517 (diff)
downloadbitbake-contrib-dd83c732b945ba6f9b7cdf66f6e88cfd15a745a0.tar.gz
bitbake-contrib-dd83c732b945ba6f9b7cdf66f6e88cfd15a745a0.tar.bz2
bitbake-contrib-dd83c732b945ba6f9b7cdf66f6e88cfd15a745a0.zip
toaster: trim build target input
Trim the entered built target value so that Toaster is not confused with no real targets nor a ghost second target. [YOCTO #11727] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/toastergui/static/js/projecttopbar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/static/js/projecttopbar.js b/lib/toaster/toastergui/static/js/projecttopbar.js
index 92ab2d67fd..69220aaf57 100644
--- a/lib/toaster/toastergui/static/js/projecttopbar.js
+++ b/lib/toaster/toastergui/static/js/projecttopbar.js
@@ -73,14 +73,14 @@ function projectTopBarInit(ctx) {
newBuildTargetBuildBtn.click(function (e) {
e.preventDefault();
- if (!newBuildTargetInput.val()) {
+ if (!newBuildTargetInput.val().trim()) {
return;
}
/* We use the value of the input field so as to maintain any command also
* added e.g. core-image-minimal:clean and because we can build targets
* that toaster doesn't yet know about
*/
- selectedTarget = { name: newBuildTargetInput.val() };
+ selectedTarget = { name: newBuildTargetInput.val().trim() };
/* Fire off the build */
libtoaster.startABuild(null, selectedTarget.name,