Bug 36327: Delete link is no longer a GET href

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-03-15 10:50:50 +00:00 committed by Katrin Fischer
parent 955218e55a
commit ce902285d2
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -23,7 +23,7 @@ $(document).ready(function(){
$(".linktools").remove();
var edit_link = $('<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&frameworkcode=' + frameworkcode + '&biblionumber=' + biblionumber + '&itemnumber=' + num_rowid + '&searchid=' + searchid + '#edititem"></a>');
$(edit_link).text( LABEL_EDIT_ITEM );
var delete_link = $('<a href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&frameworkcode=' + frameworkcode + '&biblionumber=' + biblionumber + '&itemnumber=' + num_rowid + '&searchid=' + searchid + '"></a>');
var delete_link = $('<a class="delete" data-item="'+num_rowid+'" href="#"></a>');
$(delete_link).text( LABEL_DELETE_ITEM );
var tools_node = $('<span class="linktools"></span>');
$(tools_node).append(edit_link);