From 3dfca5a25077c46f0750785e5b8e0eb81f11c253 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 14 Jul 2013 16:13:54 +0100 Subject: [PATCH] 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 --- TODO | 1 - templates/layerindex/layers.html | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index ea9b3c6..83fe928 100644 --- a/TODO +++ b/TODO @@ -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? diff --git a/templates/layerindex/layers.html b/templates/layerindex/layers.html index 01ba9e5..f612cb0 100644 --- a/templates/layerindex/layers.html +++ b/templates/layerindex/layers.html @@ -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;