|
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 647-654
Link Here
|
| 647 |
}); |
646 |
}); |
| 648 |
|
647 |
|
| 649 |
$("#news_display_location").on("change", function () { |
648 |
$("#news_display_location").on("change", function () { |
| 650 |
var term = $(this).val(); |
649 |
// Table must be filtered by the <option>'s text, not its value |
| 651 |
filterDataTable(table_dt, 1, term); |
650 |
var term = $(this).find("option:selected").text(); |
|
|
651 |
if (term == "All") { |
| 652 |
term = ""; |
| 653 |
} |
| 654 |
filterDataTable(table, 1, term); |
| 652 |
}); |
655 |
}); |
| 653 |
|
656 |
|
| 654 |
$("#news_library").on("change", function () { |
657 |
$("#news_library").on("change", function () { |
| 655 |
- |
|
|