Bugzilla – Attachment 13533 Details for
Bug 8986
Batch patron modification template corrections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8986: Followup FIX a JS error if there is no valid card number
Bug-8986-Followup-FIX-a-JS-error-if-there-is-no-va.patch (text/plain), 3.28 KB, created by
Owen Leonard
on 2012-11-19 16:53:11 UTC
(
hide
)
Description:
Bug 8986: Followup FIX a JS error if there is no valid card number
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-11-19 16:53:11 UTC
Size:
3.28 KB
patch
obsolete
>From 8752256e23dec57dcee83aa9ffa1cdff31956d26 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 19 Nov 2012 17:11:21 +0100 >Subject: [PATCH] Bug 8986: Followup FIX a JS error if there is no valid card > number >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >I can't reproduce the JS error but the template changes are correct >with regard to how the page should handle errors. >--- > .../prog/en/modules/tools/modborrowers.tt | 34 +++++++++++--------- > 1 file changed, 19 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >index 377a87d..62d2eb3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >@@ -9,24 +9,26 @@ > var patron_attributes_lib = new Array(); > var patron_attributes_values = new Array(); > $(document).ready(function() { >- $("#borrowerst").tablesorter({ >- [% IF ( op == 'show' ) %]headers: { 0: { sorter: false}},[% END %] >- widgets : ['zebra'], >- sortList: [[1,0]] >- }); >+ [% IF borrowers %] >+ $("#borrowerst").tablesorter({ >+ headers: { 0: { sorter: false}}, >+ widgets : ['zebra'], >+ sortList: [[1,0]] >+ }); > >- $("#selectallbutton").click(function() { >- $("#borrowerst").find("input:checkbox").each(function() { >- $(this).attr("checked", true); >+ $("#selectallbutton").click(function() { >+ $("#borrowerst").find("input:checkbox").each(function() { >+ $(this).attr("checked", true); >+ }); >+ return false; > }); >- return false; >- }); >- $("#clearallbutton").click(function() { >- $("#borrowerst").find("input:checkbox").each(function() { >- $(this).attr("checked", false); >+ $("#clearallbutton").click(function() { >+ $("#borrowerst").find("input:checkbox").each(function() { >+ $(this).attr("checked", false); >+ }); >+ return false; > }); >- return false; >- }); >+ [% END %] > > var values = new Array(); > var lib = new Array(); >@@ -187,6 +189,7 @@ > <div id="toolbar"><a id="selectallbutton" href="#">Select All</a> | <a id="clearallbutton" href="#">Clear All</a></div> > [% END %] > [% END %] >+ [% IF borrowers %] > <div id="cataloguing_additem_itemlist"> > <div style="overflow:auto"> > <table id="borrowerst"> >@@ -323,6 +326,7 @@ > </div> > </form> > [% END %] >+ [% END %] > [% END %] > [% IF ( op == 'show_results' ) %] > <p> >-- >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 8986
:
13116
|
13175
|
13320
|
13531
| 13533