Bugzilla – Attachment 53957 Details for
Bug 17040
Context menu when editing items is not translated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17040: Fix translation on context menu when editing items
Bug-17040-Fix-translation-on-context-menu-when-edi.patch (text/plain), 2.24 KB, created by
Jonathan Druart
on 2016-08-03 14:50:37 UTC
(
hide
)
Description:
Bug 17040: Fix translation on context menu when editing items
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-03 14:50:37 UTC
Size:
2.24 KB
patch
obsolete
>From 5ef88f52f81cae1754a1c8cb1703ef3c2bee2ca9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 3 Aug 2016 15:48:42 +0100 >Subject: [PATCH] Bug 17040: Fix translation on context menu when editing items > >Test plan: >update and install translated language files >On the item list (cataloguing/additem.pl) the context menu should be >translated (Edit item/Delete item) >--- > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index 75b5ea8..8c642b5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -37,8 +37,10 @@ $(document).ready(function(){ > var rowid = $(this).parent().attr("id"); > num_rowid = rowid.replace("row",""); > $(".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">' + _("Edit item") + '</a>'); >- 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>'); >+ 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(_("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>'); >+ $(delete_link).text(_("Delete item")); > $(delete_link).on('click', function(e) { > return confirm_deletion(); > }); >-- >2.8.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17040
:
53957
|
53987
|
54105
|
60044