Bug 8986: Followup FIX a JS error if there is no valid card number

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.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Jonathan Druart 2012-11-19 17:11:21 +01:00 committed by Jared Camins-Esakov
parent a6c0175967
commit 2b5000c7d4
1 changed files with 19 additions and 15 deletions

View File

@ -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>