Bugzilla – Attachment 37196 Details for
Bug 13423
Unused code in serials-edit.tt and serials-recieve.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13423: Untranslatable strings in serials-edit.tt and serials-recieve.tt
Bug-13423-Untranslatable-strings-in-serials-edittt.patch (text/plain), 2.77 KB, created by
Bernardo Gonzalez Kriegel
on 2015-03-24 18:01:09 UTC
(
hide
)
Description:
Bug 13423: Untranslatable strings in serials-edit.tt and serials-recieve.tt
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-03-24 18:01:09 UTC
Size:
2.77 KB
patch
obsolete
>From 0ad6f5f93ebec2ea3c18184df85107de69da3e3a Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Tue, 24 Mar 2015 14:54:57 -0300 >Subject: [PATCH] Bug 13423: Untranslatable strings in serials-edit.tt and > serials-recieve.tt > >This patch removes unused code: > * barcode_check() function, with untranslatable strings > * commented call to this function > >To test: >1. Apply the patch >2. Check serials receive, no changes shall be detected > >http://bugs.koha-community.org/show_bug.cgi?id=13424 >--- > .../prog/en/modules/serials/serials-edit.tt | 31 -------------------- > 1 file changed, 31 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >index 3877715..3f270e0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >@@ -16,36 +16,6 @@ function popup(subscriptionid) { > window.open("subscription-renew.pl?subscriptionid="+subscriptionid,"subscription_renewal",'width=700,height=400,toolbar=false,scrollbars=yes'); > } > >-function barcode_check(){ >- [% IF ( count ) %] >- var count = [% count %]; >- for(var i=1;i<=count;i++){ >- >- var barcodenum = "barcode"+i; >- var statusnum = "status"+i; >- var elembarcode = "document.getElementById('"+barcodenum+"')"; >- var elemstatus = "document.getElementById('"+statusnum+"')"; >-// alert(elembarcode+"\n"+eval(elembarcode+".value)); >-// alert(elemstatus+"\n"+eval(elemstatus+".value")); >- if(eval(elembarcode+".value") =='' && eval(elemstatus+".value") == 2){ >- var answer = confirm("Leave barcode blank?\n - Note: unable to change this later"); >- if (answer){ >- document.f.submit(); >- } else { >- return false; >- } >- } >- if(eval(elembarcode+".value".indexOf('TEMP')) > 0 && eval(elemstatus+".value") == 2){ >- var answer = confirm("A barcode was not entered.\nDo you want to put in a barcode\nor do you want to use a system generated barcode?"); >- if (answer){ >- document.f.submit(); >- } else { >- return false; >- } >- } >- } >- [% END %] >-} > function unHideItems(index,labelindex, serialId) { > subfield = document.getElementById(index); > subfield.style.display = 'block'; >@@ -127,7 +97,6 @@ $(document).ready(function() { > [% IF ( callnumber ) %] callnumber: [% callnumber %][% END %]</h1> > [% IF internalnotes %]<p>Nonpublic note: [% internalnotes %]</p>[% END %] > <form method="post" name="f" action="serials-edit.pl" id="serials_edit"> >-<!--onsubmit="return barcode_check()">--> > > [% IF ( Errors ) %] > <div class="dialog alert"> >-- >1.7.9.5
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 13423
:
36727
|
36777
|
37196
|
37197
|
37435
|
38508
|
38647
|
38648
|
38649
|
38703
|
38704
|
38705