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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/