diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index a352cbc5a7..52cf9578cf 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -192,12 +192,13 @@ Share list [% END %] [% ELSIF category == PRIVATE # not manageshelf and private means shared %] -
[% END %] @@ -699,12 +700,13 @@ Share [% END %] [% IF s.is_shared_with( loggedinusernumber ) %] - [% END %] @@ -964,6 +966,18 @@ $(function() { }); [% END %] + $(".remove_share").on("click", function(e){ + e.preventDefault(); + var shelf_name = $(this).data("shelfname"); + var shelf_number = $(this).data("shelfnumber"); + confirmModal( shelf_name, _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){ + if( result ){ + $("#unshare" + shelf_number ).submit(); + } + } + ); + }); + }); // document.ready function sortMenu( sorting_form ){