X-Git-Url: http://git.rot13.org/?p=koha.git;a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fserials%2Fclaims.tt;h=6b0b89dff15d0d91b8521f5ddefc7f7d8728bc5b;hp=c8392e35e3cf33aa592f8f0b0c2c1efcb7faff58;hb=43adbda007545b610b3a350f359ff019737fa51b;hpb=58111f8ece68fc3c60387fceb75002ff93c976d3 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt index c8392e35e3..6b0b89dff1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -35,21 +35,21 @@ // 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. var selected = $("input[name=serialid]:checked"); - if (selected.length == 0) { - alert(_("Please select at least one item to export.")); - return false; - } - - // Building the url from currently checked boxes - var url = '/cgi-bin/koha/serials/lateissues-export.pl?supplierid=&op=claims'; - for (var i = 0; i < selected.length; i++) { - url += '&serialid=' + selected[i].value; - } + if (selected.length == 0) { + alert(_("Please select at least one item to export.")); + return false; + } + + // Building the url from currently checked boxes + var url = '/cgi-bin/koha/serials/lateissues-export.pl?supplierid=&op=claims'; + for (var i = 0; i < selected.length; i++) { + url += '&serialid=' + selected[i].value; + } url += '&csv_profile=' + $("#csv_profile_for_export option:selected").val(); - // And redirecting to the CSV page - location.href = url; - return false; - }); + // And redirecting to the CSV page + location.href = url; + return false; + }); $("#titlefilter").keyup( function () { sTable.fnFilter( this.value, 3 ); // 3 is position of title column