View | Details | Raw Unified | Return to bug 17040
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-3 / +4 lines)
Lines 37-44 $(document).ready(function(){ Link Here
37
                    var rowid = $(this).parent().attr("id");
37
                    var rowid = $(this).parent().attr("id");
38
                    num_rowid = rowid.replace("row","");
38
                    num_rowid = rowid.replace("row","");
39
                    $(".linktools").remove();
39
                    $(".linktools").remove();
40
                    var edit_link = $('<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber='+num_rowid+'&searchid=[% searchid %]#edititem">' + _("Edit item") + '</a>');
40
                    var edit_link = $('<a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber='+num_rowid+'&searchid=[% searchid %]#edititem"></a>');
41
                    var delete_link = $('<a href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber='+num_rowid+'&searchid=[% searchid %]">' + _("Delete item") + '</a></span>');
41
                    $(edit_link).text(_("Edit item"));
42
                    var delete_link = $('<a href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&frameworkcode=[% frameworkcode %]&biblionumber=[% biblionumber %]&itemnumber='+num_rowid+'&searchid=[% searchid %]"></a>');
43
                    $(delete_link).text(_("Delete item"));
42
                    $(delete_link).on('click', function(e) {
44
                    $(delete_link).on('click', function(e) {
43
                        return confirm_deletion();
45
                        return confirm_deletion();
44
                    });
46
                    });
45
- 

Return to bug 17040