diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/projecttopbar.js | 4 |
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, |