Bug 32341: (follow-up) Making the remains OPAC tables responsive
Apply the patch and check for the responsivity of the following tables 1- Go to the OPAC 2- Open mobile mode 3- The following tables are not responsive - Summary - Clubs - Summary - Recalls - Summary - Article requests - Charges - (relative's) - Search history - Authority - Checkout history - All - Checkout history - Checkouts - Checkout history - On-site - Recalls history - Messaging - Subscription (serial) - Course reserves - Courses - Course reserves - Reserves - Authority search results 4- Apply the patch 5- Execute 'yarn build --view opac' 6- Clean your cache or open your navigator on private mode (to load updated css files) 7- Perform previous step (1-3) 8- Confirm that the tables are now displayed correctly and is now responsive. Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9f277e625e
commit
6caeb1f627
13 changed files with 153 additions and 39 deletions
|
@ -257,11 +257,11 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#finestable tfoot tr {
|
table.finestable tfoot tr {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
#finestable tfoot td, #finestable tfoot th {
|
table.finestable tfoot td, table.finestable tfoot th {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[% PROCESS 'accounts.inc' %]
|
[% PROCESS 'accounts.inc' %]
|
||||||
<form method="post" action="opac-account-pay.pl" class="form-horizontal">
|
<form method="post" action="opac-account-pay.pl" class="form-horizontal">
|
||||||
[% IF ( ACCOUNT_LINES ) %]
|
[% IF ( ACCOUNT_LINES ) %]
|
||||||
<table class="table table-bordered table-striped" id="finestable">
|
<table class="table table-bordered table-striped finestable" id="finestable">
|
||||||
<caption class="sr-only">Your charges</caption>
|
<caption class="sr-only">Your charges</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
[% FOREACH r IN relatives %]
|
[% FOREACH r IN relatives %]
|
||||||
<h3 id="g[% r.patron.id | html %]">[% r.patron.firstname | html %] [% r.patron.surname | html %]'s fines and charges</h3>
|
<h3 id="g[% r.patron.id | html %]">[% r.patron.firstname | html %] [% r.patron.surname | html %]'s fines and charges</h3>
|
||||||
|
|
||||||
<table class="table table-bordered table-striped" id="finestable-[% r.id | html %]">
|
<table class="table table-bordered table-striped finestable" id="finestable-[% r.id | html %]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %]
|
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %]
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Date enrolled</th>
|
<th>Date enrolled</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
Contact your library to be disenrolled from this club.
|
Contact your library to be disenrolled from this club.
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -46,6 +48,7 @@
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -63,6 +66,7 @@
|
||||||
<span class="hint">You must have an email address to enroll</span>
|
<span class="hint">You must have an email address to enroll</span>
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -98,4 +102,19 @@ function cancelEnrollment( id ) {
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
var Tables = $("#clubs-table-enrolled,#clubs-table-unenrolled");
|
||||||
|
Tables.each(function(){
|
||||||
|
$(this).dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
|
"searching": false,
|
||||||
|
"paging": false,
|
||||||
|
"info": false,
|
||||||
|
"autoWidth": false,
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column',"target": -1 }
|
||||||
|
},
|
||||||
|
"columnDefs": [
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
|
],
|
||||||
|
}));
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -99,6 +99,10 @@ $( document ).ready(function() {
|
||||||
"responsive": true,
|
"responsive": true,
|
||||||
} ));
|
} ));
|
||||||
|
|
||||||
|
$('table[id^="finestable-"]').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
|
"responsive": true
|
||||||
|
} ));
|
||||||
|
|
||||||
$("#filter_p").html('<p><a href="#" id="filter_paid"><i class="fa fa-filter" aria-hidden="true"></i> '+txtActivefilter+'</a>');
|
$("#filter_p").html('<p><a href="#" id="filter_paid"><i class="fa fa-filter" aria-hidden="true"></i> '+txtActivefilter+'</a>');
|
||||||
$('#filter_paid').click(function(e) {
|
$('#filter_paid').click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -96,11 +96,13 @@
|
||||||
<caption class="sr-only">Authority search results</caption>
|
<caption class="sr-only">Authority search results</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">Authorized headings</th>
|
<th>Authorized headings</th>
|
||||||
|
<th></th>
|
||||||
<th>Type of heading</th>
|
<th>Type of heading</th>
|
||||||
[% UNLESS ( isEDITORS ) %]
|
[% UNLESS ( isEDITORS ) %]
|
||||||
<th>Records</th>
|
<th>Records</th>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -124,6 +126,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -140,4 +143,22 @@
|
||||||
</div> <!-- / .main -->
|
</div> <!-- / .main -->
|
||||||
|
|
||||||
[% INCLUDE 'opac-bottom.inc' %]
|
[% INCLUDE 'opac-bottom.inc' %]
|
||||||
[% BLOCK jsinclude %][% END %]
|
[% BLOCK jsinclude %]
|
||||||
|
[% INCLUDE 'datatables.inc' %]
|
||||||
|
<script type="text/JavaScript">
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
|
"searching": false,
|
||||||
|
"paging": false,
|
||||||
|
"info": false,
|
||||||
|
"autoWidth": false,
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column',"target": -1 }
|
||||||
|
},
|
||||||
|
"columnDefs": [
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
|
],
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
<th>Date due</th>
|
<th>Date due</th>
|
||||||
<th>Notes</th>
|
<th>Notes</th>
|
||||||
<th>Link</th>
|
<th>Link</th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -105,6 +106,7 @@
|
||||||
<a href="[% cr.biblioitem.url | url %]">Record URL</a>
|
<a href="[% cr.biblioitem.url | url %]">Record URL</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -134,7 +136,13 @@
|
||||||
"language": {
|
"language": {
|
||||||
"search": "_INPUT_",
|
"search": "_INPUT_",
|
||||||
"searchPlaceholder": _("Search course reserves")
|
"searchPlaceholder": _("Search course reserves")
|
||||||
}
|
},
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column',"target": -1 }
|
||||||
|
},
|
||||||
|
"aoColumnDefs": [
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 },
|
||||||
|
],
|
||||||
}, columns_settings );
|
}, columns_settings );
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
<th>[% tp('Semester', 'Term') | html %]</th>
|
<th>[% tp('Semester', 'Term') | html %]</th>
|
||||||
<th>Instructors</th>
|
<th>Instructors</th>
|
||||||
<th>Notes</th>
|
<th>Notes</th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -62,6 +63,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
<td>[% c.public_note | $raw %]</td>
|
<td>[% c.public_note | $raw %]</td>
|
||||||
|
<td></td>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -87,7 +89,13 @@
|
||||||
"language": {
|
"language": {
|
||||||
"search": "_INPUT_",
|
"search": "_INPUT_",
|
||||||
"searchPlaceholder": _("Search courses")
|
"searchPlaceholder": _("Search courses")
|
||||||
}
|
},
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column',"target": -1 }
|
||||||
|
},
|
||||||
|
"aoColumnDefs": [
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 },
|
||||||
|
],
|
||||||
}, columns_settings );
|
}, columns_settings );
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -758,6 +758,7 @@
|
||||||
<th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
|
<th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
|
||||||
<th id="serial_status" data-colname="serial_status">Status</th>
|
<th id="serial_status" data-colname="serial_status">Status</th>
|
||||||
<th id="serial_notes" data-colname="serial_notes">Note</th>
|
<th id="serial_notes" data-colname="serial_notes">Note</th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -770,6 +771,7 @@
|
||||||
[% INCLUDE 'serial-status.inc' serial = latestserial %]
|
[% INCLUDE 'serial-status.inc' serial = latestserial %]
|
||||||
</td>
|
</td>
|
||||||
<td class="serial_notes">[% latestserial.notes | html %]</td>
|
<td class="serial_notes">[% latestserial.notes | html %]</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END # / FOREACH latestserials %]
|
[% END # / FOREACH latestserials %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -1740,31 +1742,26 @@
|
||||||
|
|
||||||
KohaTable("#holdingst", {
|
KohaTable("#holdingst", {
|
||||||
dom: '<"clearfix">t',
|
dom: '<"clearfix">t',
|
||||||
"columnDefs": [
|
"aoColumnDefs": [
|
||||||
{ "targets": [ -1 ], "sortable": false, "searchable": false },
|
{ "className": "dtr-control", "orderable": false, "targets": -1 }
|
||||||
],
|
],
|
||||||
"bKohaColumnsUseNames": true,
|
"bKohaColumnsUseNames": true,
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
"responsive": {
|
"responsive": {
|
||||||
"details": {
|
"details": { "type": 'column', "target": -1 }
|
||||||
"type": 'column',
|
}
|
||||||
"target": -1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
aoColumnDefs: [ {
|
|
||||||
className:"dtr-control",
|
|
||||||
orderable: false,
|
|
||||||
targets: [-1],
|
|
||||||
} ],
|
|
||||||
}, columns_settings);
|
}, columns_settings);
|
||||||
|
|
||||||
KohaTable("#otherholdingst", {
|
KohaTable("#otherholdingst", {
|
||||||
dom: '<"clearfix">t',
|
dom: '<"clearfix">t',
|
||||||
"columnDefs": [
|
"aoColumnDefs": [
|
||||||
{ "targets": [ -1 ], "sortable": false, "searchable": false },
|
{ "className": "dtr-control", "orderable": false, "targets": -1 }
|
||||||
],
|
],
|
||||||
"bKohaColumnsUseNames": true,
|
"bKohaColumnsUseNames": true,
|
||||||
"autoWidth": false
|
"autoWidth": false,
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column', "target": -1 }
|
||||||
|
}
|
||||||
}, columns_settings);
|
}, columns_settings);
|
||||||
|
|
||||||
var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
|
var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
|
||||||
|
@ -1773,9 +1770,20 @@
|
||||||
dom: '<"clearfix">t',
|
dom: '<"clearfix">t',
|
||||||
"sorting": [[ 1, "desc" ]],
|
"sorting": [[ 1, "desc" ]],
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
"bKohaColumnsUseNames": true
|
"bKohaColumnsUseNames": true,
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column', "target": -1 }
|
||||||
|
},
|
||||||
|
"aoColumnDefs": [
|
||||||
|
{ "className": "dtr-control", "orderable": false, "targets": -1 }
|
||||||
|
],
|
||||||
}, serial_column_settings);
|
}, serial_column_settings);
|
||||||
|
|
||||||
|
var dTables = $("#holdingst,#subscriptionst,#otherholdingst");
|
||||||
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (event) {
|
||||||
|
dTables.DataTable().responsive.recalc();
|
||||||
|
} );
|
||||||
|
|
||||||
[% IF ( TagsInputEnabled && loggedinusername ) %]
|
[% IF ( TagsInputEnabled && loggedinusername ) %]
|
||||||
$(".tag_add").click(function(){
|
$(".tag_add").click(function(){
|
||||||
var thisid = $(this).attr("id");
|
var thisid = $(this).attr("id");
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
[% IF Koha.Preference('PhoneNotification') %]<th>Phone</th>[% END %]
|
[% IF Koha.Preference('PhoneNotification') %]<th>Phone</th>[% END %]
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th>Digests only <i id="info_digests" data-toggle="tooltip" title="You can ask for a digest to reduce the number of messages. Messages will be saved and sent as a single message." data-placement="right" class="fa fa-info-circle"></i></th>
|
<th>Digests only <i id="info_digests" data-toggle="tooltip" title="You can ask for a digest to reduce the number of messages. Messages will be saved and sent as a single message." data-placement="right" class="fa fa-info-circle"></i></th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -171,6 +172,7 @@
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<td></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
[% END # / FOREACH messaging_preferences%]
|
[% END # / FOREACH messaging_preferences%]
|
||||||
|
@ -254,6 +256,7 @@
|
||||||
|
|
||||||
[% INCLUDE 'opac-bottom.inc' %]
|
[% INCLUDE 'opac-bottom.inc' %]
|
||||||
[% BLOCK jsinclude %]
|
[% BLOCK jsinclude %]
|
||||||
|
[% INCLUDE 'datatables.inc' %]
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#info_digests").tooltip();
|
$("#info_digests").tooltip();
|
||||||
|
@ -310,5 +313,16 @@
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
$('.table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
|
"searching": false,
|
||||||
|
"paging": false,
|
||||||
|
"info": false,
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column',"target": -1 }
|
||||||
|
},
|
||||||
|
"columnDefs": [
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
|
],
|
||||||
|
}));
|
||||||
</script>
|
</script>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
[% IF ( OPACMySummaryHTML ) %]
|
[% IF ( OPACMySummaryHTML ) %]
|
||||||
<th class="NoSort noExport">Links</th>
|
<th class="NoSort noExport">Links</th>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -189,6 +190,7 @@
|
||||||
[% IF OPACMySummaryHTML %]
|
[% IF OPACMySummaryHTML %]
|
||||||
<td>[% issue.MySummaryHTML | $raw %]</td>
|
<td>[% issue.MySummaryHTML | $raw %]</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END # / FOREACH issue %]
|
[% END # / FOREACH issue %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -224,7 +226,15 @@
|
||||||
"language": {
|
"language": {
|
||||||
"search": "_INPUT_",
|
"search": "_INPUT_",
|
||||||
"searchPlaceholder": _("Search")
|
"searchPlaceholder": _("Search")
|
||||||
}
|
},
|
||||||
|
"responsive": {
|
||||||
|
"details": {"type": 'column',"target": -1}
|
||||||
|
},
|
||||||
|
"aoColumnDefs": [
|
||||||
|
{ "className": "dtr-control","orderable": false,"targets": [-1] },
|
||||||
|
{ "visible": false, "targets": [0]},
|
||||||
|
{ "orderable": false, "targets": [1]}
|
||||||
|
],
|
||||||
}, columns_settings);
|
}, columns_settings);
|
||||||
|
|
||||||
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
|
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th>Due date</th>
|
<th>Due date</th>
|
||||||
<th class="nosort"> </th>
|
<th class="nosort"> </th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -120,6 +121,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -146,10 +148,14 @@
|
||||||
return confirmDelete(_("Are you sure you want to remove this recall?"));
|
return confirmDelete(_("Are you sure you want to remove this recall?"));
|
||||||
});
|
});
|
||||||
$("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
$("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column', "target": -1 }
|
||||||
|
},
|
||||||
"aoColumnDefs": [
|
"aoColumnDefs": [
|
||||||
{ "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
|
{ "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
|
||||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
||||||
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
|
{ "sType": "title-string", "aTargets" : [ "title-string" ] },
|
||||||
|
{ "className": "dtr-control", "orderable": false, "targets": -1 }
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
|
@ -289,7 +289,7 @@
|
||||||
"dom": '<"top"<"table_entries"><"table_controls"fB>>t',
|
"dom": '<"top"<"table_entries"><"table_controls"fB>>t',
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{ "targets": [ 0 ], "sortable": false, "searchable": false },
|
{ "targets": [ 0 ], "sortable": false, "searchable": false },
|
||||||
{"className": 'dtr-control',"orderable": false,"targets": -1}
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
],
|
],
|
||||||
"language": {
|
"language": {
|
||||||
"search": "_INPUT_",
|
"search": "_INPUT_",
|
||||||
|
@ -297,13 +297,13 @@
|
||||||
},
|
},
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
"responsive": {
|
"responsive": {
|
||||||
details: {
|
"details": { "type": 'column',"target": -1 }
|
||||||
type: 'column',
|
|
||||||
target: -1
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
|
$(".historyt").DataTable().responsive.recalc();
|
||||||
|
});
|
||||||
$(".CheckNone").click(function(e){
|
$(".CheckNone").click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var form = $(this).parents("form").get(0);
|
var form = $(this).parents("form").get(0);
|
||||||
|
|
|
@ -852,6 +852,7 @@
|
||||||
<th>Pickup location</th>
|
<th>Pickup location</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th class="nosort"> </th>
|
<th class="nosort"> </th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -907,6 +908,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -935,6 +937,7 @@
|
||||||
<th class="article-request-status">Status</th>
|
<th class="article-request-status">Status</th>
|
||||||
<th class="article-request-branchcode">Pickup library</th>
|
<th class="article-request-branchcode">Pickup library</th>
|
||||||
<th class="nosort article-request-cancel"> </th>
|
<th class="nosort article-request-cancel"> </th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -1011,6 +1014,7 @@
|
||||||
<td class="article-request-cancel">
|
<td class="article-request-cancel">
|
||||||
<button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
|
<button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
|
||||||
</td>
|
</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -1207,7 +1211,8 @@
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{ "targets": [ "nosort" ],"sortable": false,"searchable": false },
|
{ "targets": [ "nosort" ],"sortable": false,"searchable": false },
|
||||||
{ "type": "anti-the", "targets" : [ "anti-the" ] },
|
{ "type": "anti-the", "targets" : [ "anti-the" ] },
|
||||||
{ "visible": false, "targets" : [ "hidden" ] }
|
{ "visible": false, "targets" : [ "hidden" ] },
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
],
|
],
|
||||||
"language": {
|
"language": {
|
||||||
"search": "_INPUT_",
|
"search": "_INPUT_",
|
||||||
|
@ -1220,11 +1225,6 @@
|
||||||
target: -1
|
target: -1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"columnDefs": [ {
|
|
||||||
className: 'dtr-control',
|
|
||||||
orderable: false,
|
|
||||||
targets: -1
|
|
||||||
} ],
|
|
||||||
buttons: [
|
buttons: [
|
||||||
/* Override default button set so that we can extend the options of print and csv */
|
/* Override default button set so that we can extend the options of print and csv */
|
||||||
'clearFilter', 'copy',
|
'clearFilter', 'copy',
|
||||||
|
@ -1246,8 +1246,24 @@
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var dataTables = $("#recalls-table,#article-requests-table");
|
||||||
|
dataTables.each(function(){
|
||||||
|
$(this).dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
|
"searching": false,
|
||||||
|
"paging": false,
|
||||||
|
"info": false,
|
||||||
|
"autoWidth": false,
|
||||||
|
"responsive": {
|
||||||
|
"details": { "type": 'column',"target": -1 }
|
||||||
|
},
|
||||||
|
"columnDefs": [
|
||||||
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
|
],
|
||||||
|
}));
|
||||||
|
});
|
||||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (event) {
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (event) {
|
||||||
dTables.DataTable().responsive.recalc();
|
dTables.DataTable().responsive.recalc();
|
||||||
|
dataTables.DataTable().responsive.recalc();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$("body").on("click", "#buttons-ics", function(){
|
$("body").on("click", "#buttons-ics", function(){
|
||||||
|
|
Loading…
Reference in a new issue