@@ -, +, @@ - Create a new list, do not add items - Notice that the toolbar now renders correctly - Use the different link to create/edit/delete - Confirm that the sort link is not displayed - Add a new item - Confirm that the toolbar is looking the same as before --- .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -176,7 +176,7 @@
- +
@@ -184,7 +184,7 @@
- +
@@ -492,22 +492,22 @@ [% ELSE %]
- New list + New list [% IF can_manage_shelf %] |
- + - +
- - - + + +
[% END %]
@@ -956,11 +956,13 @@ $(function() { stickyClass: "floating" }); - sortMenu( $("#sorting-form") ); + [% IF itemsloop %] + sortMenu( $("#sorting-form") ); - $("#sortfield").on("change", function(){ - $('#sorting-form').submit(); - }); + $("#sortfield").on("change", function(){ + $('#sorting-form').submit(); + }); + [% END %] }); // document.ready --