Lines 174-180
Link Here
|
174 |
<li> |
174 |
<li> |
175 |
<label for="news_library">Library: </label> |
175 |
<label for="news_library">Library: </label> |
176 |
<select id="news_library" name="news_library"> |
176 |
<select id="news_library" name="news_library"> |
177 |
<option value=""></option> |
|
|
178 |
<option value="">All libraries</option> |
177 |
<option value="">All libraries</option> |
179 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %] |
178 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %] |
180 |
</select> |
179 |
</select> |
Lines 405-411
Link Here
|
405 |
<td> |
404 |
<td> |
406 |
[% IF c.category == 'news' || c.category == 'pages' %] |
405 |
[% IF c.category == 'news' || c.category == 'pages' %] |
407 |
[% IF c.location == 'staff_and_opac' %] |
406 |
[% IF c.location == 'staff_and_opac' %] |
408 |
<span>All</span> |
407 |
<span>Staff interface and OPAC</span> |
409 |
[% ELSIF c.location == 'staff_only' %] |
408 |
[% ELSIF c.location == 'staff_only' %] |
410 |
<span>Staff interface</span> |
409 |
<span>Staff interface</span> |
411 |
[% ELSIF c.location == 'opac_only' %] |
410 |
[% ELSIF c.location == 'opac_only' %] |
Lines 648-654
Link Here
|
648 |
}); |
647 |
}); |
649 |
|
648 |
|
650 |
$("#news_display_location").on("change", function () { |
649 |
$("#news_display_location").on("change", function () { |
651 |
var term = $(this).val(); |
650 |
// Table must be filtered by the <option>'s text, not its value |
|
|
651 |
var term = $(this).find("option:selected").text(); |
652 |
if (term == "All") { |
653 |
term = ""; |
654 |
} |
652 |
filterDataTable(table, 1, term); |
655 |
filterDataTable(table, 1, term); |
653 |
}); |
656 |
}); |
654 |
|
657 |
|
655 |
- |
|
|