summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
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-05 15:00:49 +0100
commit1ec9de893cd782c680b1498d8368ddc129efa28d (patch)
tree907542e8ffc69b408775108e25f35fa7cbee8f7c /bitbake/lib/toaster/toastergui/templates
parentee5bce2d11e783c0921df47b629025a6b67c44bf (diff)
downloadpoky-1ec9de893cd782c680b1498d8368ddc129efa28d.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: 193577655b7491126ca5fa91fa76d79329e900c2) 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/lib/toaster/toastergui/templates')
-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