summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-01-15 13:01:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-15 16:30:00 +0000
commit4103e0cb748888d83a5a892b5a022d633846bce8 (patch)
tree239d96d44aebcee4614ae92609751acd9b0ebee8 /bitbake/lib/toaster/toastergui/templates
parent6c2d88fda5bb121836c57fd54e23e3a63528801d (diff)
downloadpoky-4103e0cb748888d83a5a892b5a022d633846bce8.tar.gz
bitbake: toastergui: make "Apply" button state depend on filter range
If a range filter action had an empty from/to field, the range filter could still be applied. This was confusing, as an invalid filter range caused all records to display, even though a filter appeared to have been applied (by the highlighted state of the filter button). Change the state of the "Apply" button, disabling it if the radio button for a range filter action is selected but the range is incomplete (from or to field is empty). When a non-range filter is selected, the "Apply" button always enable the "Apply" button. [YOCTO #8738] (Bitbake rev: 168184b28165d7aa354b9092b5986f91c58d550d) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.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/toastertable-filter.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable-filter.html b/bitbake/lib/toaster/toastergui/templates/toastertable-filter.html
index 7c8dc49b33..4d28793bf6 100644
--- a/bitbake/lib/toaster/toastergui/templates/toastertable-filter.html
+++ b/bitbake/lib/toaster/toastergui/templates/toastertable-filter.html
@@ -10,7 +10,9 @@
10 <span id="filter-actions-{{table_name}}"></span> 10 <span id="filter-actions-{{table_name}}"></span>
11 </div> 11 </div>
12 <div class="modal-footer"> 12 <div class="modal-footer">
13 <button class="btn btn-primary" type="submit">Apply</button> 13 <button class="btn btn-primary" type="submit" data-role="filter-apply">
14 Apply
15 </button>
14 </div> 16 </div>
15 </form> 17 </form>
16</div> 18</div>