@@ -, +, @@ out without explanation - Normal - MARC - Labeled MARC - ISBD - Items - Edit items in a batch - Delete items in a batch - Delete all items --- .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 42 ++++++++++++++++---- 1 file changed, 35 insertions(+), 7 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -82,10 +82,13 @@ return false; } } else { - alert(_("This record has no items.")); + alertNoItems(); return false; } } + function alertNoItems(){ + alert(_("This record has no items.")); + } [% END %] $(document).ready(function() { $("#z3950copy").click(function(){ @@ -115,6 +118,13 @@ return false; }); $("#export").remove(); // Hide embedded export form if JS menus available + $("#deletebiblio").tooltip(); + $("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled") + .on("click",function(e){ + e.preventDefault(); + alertNoItems(); + }) + .tooltip(); }); //]]> @@ -161,9 +171,21 @@ CAN_user_serials_create_subscription ) %]