summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
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:18 +0100
commit882e85cd83affed95b747473b248aba99ccd25d6 (patch)
tree2d02d1b48ff97cc412fda0e663aa0972cd12c694 /bitbake/lib/toaster/toastergui
parenta25ece2d77f28e71a71913ea25391bcbc8fa37e0 (diff)
downloadpoky-882e85cd83affed95b747473b248aba99ccd25d6.tar.gz
bitbake: 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] (Bitbake rev: dd83c732b945ba6f9b7cdf66f6e88cfd15a745a0) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projecttopbar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js b/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
index 92ab2d67fd..69220aaf57 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
@@ -73,14 +73,14 @@ function projectTopBarInit(ctx) {
73 73
74 newBuildTargetBuildBtn.click(function (e) { 74 newBuildTargetBuildBtn.click(function (e) {
75 e.preventDefault(); 75 e.preventDefault();
76 if (!newBuildTargetInput.val()) { 76 if (!newBuildTargetInput.val().trim()) {
77 return; 77 return;
78 } 78 }
79 /* We use the value of the input field so as to maintain any command also 79 /* We use the value of the input field so as to maintain any command also
80 * added e.g. core-image-minimal:clean and because we can build targets 80 * added e.g. core-image-minimal:clean and because we can build targets
81 * that toaster doesn't yet know about 81 * that toaster doesn't yet know about
82 */ 82 */
83 selectedTarget = { name: newBuildTargetInput.val() }; 83 selectedTarget = { name: newBuildTargetInput.val().trim() };
84 84
85 /* Fire off the build */ 85 /* Fire off the build */
86 libtoaster.startABuild(null, selectedTarget.name, 86 libtoaster.startABuild(null, selectedTarget.name,