Lines 90-99
Link Here
|
90 |
alert(_("Please select at least one label to export.")); |
90 |
alert(_("Please select at least one label to export.")); |
91 |
return; // no batch selected |
91 |
return; // no batch selected |
92 |
} |
92 |
} |
93 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800); |
93 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&" + getstr, 400, 800); |
94 |
} |
94 |
} |
95 |
else if (mode == 'batch') { |
95 |
else if (mode == 'batch') { |
96 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]", 700, 800); |
96 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]", 400, 800); |
97 |
} |
97 |
} |
98 |
else { |
98 |
else { |
99 |
// some pass-thru error trapping just in case... |
99 |
// some pass-thru error trapping just in case... |
Lines 118-126
Link Here
|
118 |
|
118 |
|
119 |
$(document).ready(function() { |
119 |
$(document).ready(function() { |
120 |
$("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, { |
120 |
$("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
121 |
"autoWidth": false, |
121 |
"aoColumnDefs": [ |
122 |
"aoColumnDefs": [ |
122 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
123 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
123 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false } |
124 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
124 |
], |
125 |
], |
125 |
"aaSorting": [[ 0, "asc" ]], |
126 |
"aaSorting": [[ 0, "asc" ]], |
126 |
"sPaginationType": "four_button" |
127 |
"sPaginationType": "four_button" |
Lines 245-251
Link Here
|
245 |
<tr> |
246 |
<tr> |
246 |
[% FOREACH text_field IN table_loo.text_fields %] |
247 |
[% FOREACH text_field IN table_loo.text_fields %] |
247 |
[% IF ( text_field.select_field ) %] |
248 |
[% IF ( text_field.select_field ) %] |
248 |
<td><a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&batch_id=[% batch_id |url %]&label_id=[% text_field.field_value |url %]"><icon class="fa fa-trash"></icon> Delete</a> <a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&label_id=[% text_field.field_value |url %]')"><icon class="fa fa-share-square-o"></icon> Export</a></td> |
249 |
<td><a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&batch_id=[% batch_id |url %]&label_id=[% text_field.field_value |url %]"><icon class="fa fa-trash"></icon> Delete</a><a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&label_id=[% text_field.field_value |url %]', 400, 800)"><icon class="fa fa-share-square-o"></icon> Export</a></td> |
249 |
<td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td> |
250 |
<td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td> |
250 |
[% ELSE %] |
251 |
[% ELSE %] |
251 |
<td> |
252 |
<td> |