summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-01-02 14:24:32 +0100
committerYorhel <git@yorhel.nl>2020-01-02 14:24:32 +0100
commite54f08dd75563be788b9dc16e17165e1c8c81542 (patch)
treedab47ccee837a86be13b14809976fdb088e42b07 /lib
parent3d22bada02f2d10a2bde03813cca2445b3d36132 (diff)
ulist: Hide "Multi-select" when JS is disabled + auto-submit on label filter selection
Diffstat (limited to 'lib')
-rw-r--r--lib/VNWeb/User/Lists.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VNWeb/User/Lists.pm b/lib/VNWeb/User/Lists.pm
index 8da7fbdb..e9a33bec 100644
--- a/lib/VNWeb/User/Lists.pm
+++ b/lib/VNWeb/User/Lists.pm
@@ -317,9 +317,11 @@ sub filters_ {
span_ class => 'linkradio', sub {
join_ sub { em_ ' / ' }, \&lblfilt_, grep $_->{id} < 10, @$filtlabels;
- em_ ' || ';
- input_ type => 'checkbox', name => 'mul', value => 1, id => 'form_l_multi', tabindex => 10, $opt->{mul} ? (checked => 'checked') : ();
- label_ for => 'form_l_multi', 'Multi-select';
+ span_ class => 'hidden', sub {
+ em_ ' || ';
+ input_ type => 'checkbox', name => 'mul', value => 1, id => 'form_l_multi', tabindex => 10, $opt->{mul} ? (checked => 'checked') : ();
+ label_ for => 'form_l_multi', 'Multi-select';
+ };
debug_ $filtlabels;
};
my @cust = grep $_->{id} >= 10, @$filtlabels;