Lines 2-11
Link Here
|
2 |
<title>Koha › Circulation › Offline Circulation</title> |
2 |
<title>Koha › Circulation › Offline Circulation</title> |
3 |
[% INCLUDE "doc-head-close.inc" %] |
3 |
[% INCLUDE "doc-head-close.inc" %] |
4 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
4 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
|
|
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
5 |
<script type="text/javascript" language="javascript"> |
6 |
<script type="text/javascript" language="javascript"> |
|
|
7 |
//<![CDATA[ |
6 |
$(document).ready(function() { |
8 |
$(document).ready(function() { |
7 |
$('#checkall').click(function() { |
9 |
|
8 |
$(":checkbox").attr('checked', $('#checkall').is(':checked')); |
10 |
$("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_('Uncheck All')+"<\/a>"); |
|
|
11 |
$("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_('Check All')+"<\/a>"); |
12 |
$('#CheckNone').click(function() { |
13 |
$("#operations").unCheckCheckboxes(); |
14 |
return false; |
15 |
}); |
16 |
$('#CheckAll').click(function() { |
17 |
$("#operations").checkCheckboxes(); |
18 |
return false; |
9 |
}); |
19 |
}); |
10 |
$('#process,#delete').click(function() { |
20 |
$('#process,#delete').click(function() { |
11 |
var action = $(this).attr("id"); |
21 |
var action = $(this).attr("id"); |
Lines 17-23
Link Here
|
17 |
async: false, |
27 |
async: false, |
18 |
dataType: "text", |
28 |
dataType: "text", |
19 |
success: function(data) { |
29 |
success: function(data) { |
20 |
cb.replaceWith(data); |
30 |
if( data == "Added." ){ |
|
|
31 |
cb.replaceWith(_("Added.")); |
32 |
} else if ( data == "Deleted."){ |
33 |
cb.replaceWith(_("Deleted.")); |
34 |
} else if ( data == "Success."){ |
35 |
cb.replaceWith(_("Success.")); |
36 |
} else if ( data == "Item not issued."){ |
37 |
cb.replaceWith(_("Item not checked out.")); |
38 |
} else if ( data == "Item not found."){ |
39 |
cb.replaceWith(_("Item not found.")); |
40 |
} else if ( data == "Barcode not found."){ |
41 |
cb.replaceWith(_("Item not found.")); |
42 |
} else if ( data == "Borrower not found."){ |
43 |
cb.replaceWith(_("Patron not found.")); |
44 |
} else { |
45 |
cb.replaceWith(data); |
46 |
} |
21 |
}}); |
47 |
}}); |
22 |
}); |
48 |
}); |
23 |
if( $('#operations tbody :checkbox').size() == 0 ) { |
49 |
if( $('#operations tbody :checkbox').size() == 0 ) { |
Lines 25-30
Link Here
|
25 |
} |
51 |
} |
26 |
}); |
52 |
}); |
27 |
}); |
53 |
}); |
|
|
54 |
//]]> |
28 |
</script> |
55 |
</script> |
29 |
</head> |
56 |
</head> |
30 |
<body> |
57 |
<body> |
Lines 42-52
Link Here
|
42 |
[% IF ( pending_operations ) %] |
69 |
[% IF ( pending_operations ) %] |
43 |
|
70 |
|
44 |
<form> |
71 |
<form> |
45 |
|
72 |
<p><span class="checkall"></span> | |
|
|
73 |
<span class="clearall"></span></p> |
46 |
<table id="operations"> |
74 |
<table id="operations"> |
47 |
<thead> |
75 |
<thead> |
48 |
<tr> |
76 |
<tr> |
49 |
<th><input type="checkbox" name="checkall" id="checkall" /></th> |
77 |
<th> </th> |
50 |
<th>Date</th> |
78 |
<th>Date</th> |
51 |
<th>Action</th> |
79 |
<th>Action</th> |
52 |
<th>Barcode</th> |
80 |
<th>Barcode</th> |
53 |
- |
|
|