https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42535 Bug ID: 42535 Summary: Remove useless "news_delete" javascript in staff interface Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Staff interface Assignee: koha-bugs@lists.koha-community.org Reporter: dcook@prosentient.com.au QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com In koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt there is a block of Javascript which doesn't do anything as there appears to be no news delete element on the staff interface main page: [% MACRO jsinclude BLOCK %] <script nonce="[% Koha.CSPNonce | $raw %]"> var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone."); $(document).ready(function () { $(".news_delete").on("click", function () { return confirmDelete(MSG_CONFIRM_DELETE); }); }); </script> [% END %] As far as I can tell, this can be deleted. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.