diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index 26d583cac6..b251d9b465 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -7,6 +7,11 @@ @@ -183,7 +188,7 @@ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This

Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %]
[% END %] [% IF ( CAN_user_tools ) %] Edit - | Delete + | Delete | New [% END %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt index 3e4ba75239..8dd0b603e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt @@ -15,11 +15,12 @@ ], "sPaginationType": "four_button" } )); + $(".delete_patron").on("click", function(){ + $(".dropdown").removeClass("open"); + var list = $(this).data("list-name"); + return confirmDelete( _("Are you sure you want to delete the list %s?").format(list) ); + }); }); - - function ConfirmDelete( list ) { - return confirm( _("Are you sure you want to delete the list %s?").format(list) ); - } //]]> @@ -67,7 +68,7 @@