Bug 42535: Remove .news_delete JS from the main page
The .news_delete elements have been removed on
commit c7b576ad7e
Bug 34478: Remove 'Delete' link for news on the homepage
- | <a class="news_delete" href="/cgi-bin/koha/tools/additional-contents.pl?op=delete_confirmed&ids=[% koha_new.additional_content_id | html %]&csrf_token=[% csrf_token | uri %]">Delete</a>
We can remove this code
Test plan:
Confirm that there is no "Delete" links to delete news on the main page
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
f10b232d9e
commit
10e86285a9
|
|
@ -338,14 +338,6 @@
|
|||
</div>
|
||||
<!-- /#container-main.container-fluid -->
|
||||
[% 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 %]
|
||||
<!-- the main div is closed in intranet-bottom.inc -->
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue