summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/projectconf.html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/toastergui/templates/projectconf.html')
-rw-r--r--lib/toaster/toastergui/templates/projectconf.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/projectconf.html b/lib/toaster/toastergui/templates/projectconf.html
index fcf6df2bf8..0e9712b39e 100644
--- a/lib/toaster/toastergui/templates/projectconf.html
+++ b/lib/toaster/toastergui/templates/projectconf.html
@@ -63,6 +63,7 @@
<button id="cancel-change-image_fstypes" type="button" class="btn btn-link">Cancel</button>
</div>
<p class="help-block text-danger" style="display:none;" id="hintError-image-fs_type">A valid image type cannot include underscores</p>
+ <p class="help-block text-danger" style="display:none;" id="fstypes-error-message">You must select at least one image type</p>
<label>Or choose from known image types:</label>
<input id="filter-image_fstypes" type="text" placeholder="Search image types" class="form-control">
<div id="all-image_fstypes" class="scrolling"></div>
@@ -716,8 +717,10 @@ $(document).ready(function() {
}
if ($('#new-imagefs_types').val().length === 0) {
$("#apply-change-image_fstypes").prop("disabled", true);
+ $('#fstypes-error-message').show();
} else {
$("#apply-change-image_fstypes").prop("disabled", false);
+ $('#fstypes-error-message').hide();
}
});