diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/table.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index fa01ddf47e..63f8a1fed7 100644 --- a/bitbake/lib/toaster/toastergui/static/js/table.js +++ b/bitbake/lib/toaster/toastergui/static/js/table.js | |||
@@ -248,7 +248,7 @@ function tableInit(ctx){ | |||
248 | 248 | ||
249 | /* Setup the filter button */ | 249 | /* Setup the filter button */ |
250 | if (col.filter_name){ | 250 | if (col.filter_name){ |
251 | var filterBtn = $('<a href="#" role="button" class="pull-right btn btn-mini" data-toggle="modal"><i class="icon-filter filtered"></i></a>'); | 251 | var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-mini" data-toggle="modal"><i class="icon-filter filtered"></i></a>'); |
252 | 252 | ||
253 | filterBtn.data('filter-name', col.filter_name); | 253 | filterBtn.data('filter-name', col.filter_name); |
254 | filterBtn.prop('id', col.filter_name); | 254 | filterBtn.prop('id', col.filter_name); |
@@ -565,6 +565,12 @@ function tableInit(ctx){ | |||
565 | $("#filter-modal-form-"+ctx.tableName).submit(function(e){ | 565 | $("#filter-modal-form-"+ctx.tableName).submit(function(e){ |
566 | e.preventDefault(); | 566 | e.preventDefault(); |
567 | 567 | ||
568 | /* remove active status from all filter buttons so that only one filter | ||
569 | can be active at a time */ | ||
570 | $('[data-filter-on]').each(function (index, filterBtn) { | ||
571 | filterBtnActive($(filterBtn), false); | ||
572 | }); | ||
573 | |||
568 | tableParams.filter = $(this).find("input[type='radio']:checked").val(); | 574 | tableParams.filter = $(this).find("input[type='radio']:checked").val(); |
569 | 575 | ||
570 | var filterBtn = $("#" + tableParams.filter.split(":")[0]); | 576 | var filterBtn = $("#" + tableParams.filter.split(":")[0]); |