Lines 35-55
Link Here
|
35 |
// We need to use "input[name=serialid]:checked" instead of "input:checked". Otherwise, the "check all" box will pass the value of "on" as a serialid, which produces a SQL error. |
35 |
// We need to use "input[name=serialid]:checked" instead of "input:checked". Otherwise, the "check all" box will pass the value of "on" as a serialid, which produces a SQL error. |
36 |
var selected = $("input[name=serialid]:checked"); |
36 |
var selected = $("input[name=serialid]:checked"); |
37 |
|
37 |
|
38 |
if (selected.length == 0) { |
38 |
if (selected.length == 0) { |
39 |
alert(_("Please select at least one item to export.")); |
39 |
alert(_("Please select at least one item to export.")); |
40 |
return false; |
40 |
return false; |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
// Building the url from currently checked boxes |
43 |
// Building the url from currently checked boxes |
44 |
var url = '/cgi-bin/koha/serials/lateissues-export.pl?supplierid=&op=claims'; |
44 |
var url = '/cgi-bin/koha/serials/lateissues-export.pl?supplierid=&op=claims'; |
45 |
for (var i = 0; i < selected.length; i++) { |
45 |
for (var i = 0; i < selected.length; i++) { |
46 |
url += '&serialid=' + selected[i].value; |
46 |
url += '&serialid=' + selected[i].value; |
47 |
} |
47 |
} |
48 |
url += '&csv_profile=' + $("#csv_profile_for_export option:selected").val(); |
48 |
url += '&csv_profile=' + $("#csv_profile_for_export option:selected").val(); |
49 |
// And redirecting to the CSV page |
49 |
// And redirecting to the CSV page |
50 |
location.href = url; |
50 |
location.href = url; |
51 |
return false; |
51 |
return false; |
52 |
}); |
52 |
}); |
53 |
|
53 |
|
54 |
$("#titlefilter").keyup( function () { |
54 |
$("#titlefilter").keyup( function () { |
55 |
sTable.fnFilter( this.value, 3 ); // 3 is position of title column |
55 |
sTable.fnFilter( this.value, 3 ); // 3 is position of title column |