summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-09-02 22:24:04 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-21 16:51:06 +0100
commit4c246b822a5d85ed6c569b6e700ff298e69ab106 (patch)
tree97761fdbd58edcf6174a304098659782da340eb5 /bitbake
parent9034b2c57b7e52f4437e4e6ab13e96bf26e7fa88 (diff)
downloadpoky-4c246b822a5d85ed6c569b6e700ff298e69ab106.tar.gz
bitbake: toaster: display error when the fstype select is empty
There must be at least one FSTYPE selected in the Toaster bitbake variable editor page. When the user deselects all the "Save" button gets disabled, but the error message is missing. [YOCTO #8126] (Bitbake rev: 407bb26eebe4ec8a68547fd98b0a15cb18895d9a) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectconf.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html
index fcf6df2bf8..0e9712b39e 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectconf.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html
@@ -63,6 +63,7 @@
63 <button id="cancel-change-image_fstypes" type="button" class="btn btn-link">Cancel</button> 63 <button id="cancel-change-image_fstypes" type="button" class="btn btn-link">Cancel</button>
64 </div> 64 </div>
65 <p class="help-block text-danger" style="display:none;" id="hintError-image-fs_type">A valid image type cannot include underscores</p> 65 <p class="help-block text-danger" style="display:none;" id="hintError-image-fs_type">A valid image type cannot include underscores</p>
66 <p class="help-block text-danger" style="display:none;" id="fstypes-error-message">You must select at least one image type</p>
66 <label>Or choose from known image types:</label> 67 <label>Or choose from known image types:</label>
67 <input id="filter-image_fstypes" type="text" placeholder="Search image types" class="form-control"> 68 <input id="filter-image_fstypes" type="text" placeholder="Search image types" class="form-control">
68 <div id="all-image_fstypes" class="scrolling"></div> 69 <div id="all-image_fstypes" class="scrolling"></div>
@@ -716,8 +717,10 @@ $(document).ready(function() {
716 } 717 }
717 if ($('#new-imagefs_types').val().length === 0) { 718 if ($('#new-imagefs_types').val().length === 0) {
718 $("#apply-change-image_fstypes").prop("disabled", true); 719 $("#apply-change-image_fstypes").prop("disabled", true);
720 $('#fstypes-error-message').show();
719 } else { 721 } else {
720 $("#apply-change-image_fstypes").prop("disabled", false); 722 $("#apply-change-image_fstypes").prop("disabled", false);
723 $('#fstypes-error-message').hide();
721 } 724 }
722 }); 725 });
723 726