layers: leave drop-down filter box open when ticking/unticking items

This allows users to easily tick and untick several items at once
without having to drop the filter box down multiple times. Thanks to
Belen for this snippet.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-07-14 16:13:54 +01:00
parent 4ec2431fe3
commit 3dfca5a250
2 changed files with 4 additions and 1 deletions

1
TODO
View File

@ -11,7 +11,6 @@ Later:
* All-branch search/results so you can see version availability of recipes in all branches at once?
* Rawrecipes branch support
* Display no-results found message when search does not return any results (all tables)
* Change behaviour of filter menus to stay open so that you can check / uncheck multiple items
* Show layer type in layer detail?
* Usage links in list page?
* Subdirs in list page?

View File

@ -136,6 +136,10 @@
$.uiTableFilter( theTable, this.value );
})
$('.dropdown-menu input, .dropdown-menu label').click(function(e) {
e.stopPropagation();
})
$('#filter-form').submit(function(){
theTable.find("tbody > tr:visible > td:eq(1)").mousedown();
return false;