Bug 34913: DataTables upgrade: Update CSS and option names
This patch makes two categories of changes:
1. CSS changes to accommodate changes in DataTables default CSS and
markup structure. I've tried to make sure all of our Koha-specific
styles are still applying.
This change necessitates a rebuild of staff interface CSS.
2. DataTables option names: In this version of DataTables you can't
override a default which uses CamelCase (e.g. "pagingType") with one
in "Hungarian" notation, e.g. "sPaginationType." Since we define many
default options in prog/js/datatables.js in camel case, any template
which previously used a Hungarian notation option to override the
default has now been updated to use the CamelCase version.
See https://datatables.net/upgrade/1.10-convert#Options for a summary
of the different option name changes.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 60e3f1024ba485573e53488575afd605a364a8bb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 01d85cfd0b
)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
0e9005294f
commit
0db8127652
123 changed files with 785 additions and 756 deletions
|
@ -41,7 +41,7 @@ Koha::Template::Plugin::TablesSettings
|
|||
|
||||
<script>
|
||||
var columns_settings = [% TablesSettings.GetColumns( 'module', 'page', 'table', 'json' ) | $raw %];
|
||||
var table = KohaTable("id", { "bAutoWidth": false }, columns_settings );
|
||||
var table = KohaTable("id", { "autoWidth": false }, columns_settings );
|
||||
</script>
|
||||
|
||||
This plugin allows to get the column configuration for a table. It should be used both in table markup
|
||||
|
@ -65,7 +65,7 @@ use C4::Utils::DataTables::TablesSettings;
|
|||
|
||||
<script>
|
||||
var tables_settings = [% TablesSettings.GetColumns( 'module', 'page', 'table', 'json' ) | $raw %];
|
||||
var table = KohaTable("id", { "bAutoWidth": false }, tables_settings );
|
||||
var table = KohaTable("id", { "autoWidth": false }, tables_settings );
|
||||
</script>
|
||||
|
||||
Used to get the full column settings configuration for datatables, usually requires a format of 'json' to pass into
|
||||
|
|
|
@ -112,32 +112,46 @@ table {
|
|||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sorting_asc {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iMi4zODRtbSIgdmlld0JveD0iMCAwIDYuMDAwMDAwMiAyLjM4NDAzODkiPjxnPjxwYXRoIGZpbGw9IiMwMDZhY2MiIGQ9Ik00LjA1IDEuNzRoLTIuMUwzIC42NHoiLz48L2c+PC9zdmc+" ) no-repeat scroll right center $table-header-background;
|
||||
padding-right: 19px;
|
||||
th {
|
||||
padding: .5em;
|
||||
text-align: center;
|
||||
|
||||
&.fixed_sort {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iOS4wMSIgdmlld0JveD0iMCAwIDYgMi4zODQiPjxwYXRoIGZpbGw9IiM5NDk0OTQiIGQ9Ik00LjA1IDEuNzRoLTIuMUwzIC42NHoiLz48L3N2Zz4=" ) no-repeat scroll right center $table-header-background;
|
||||
cursor: default;
|
||||
&.sorting {
|
||||
position: static;
|
||||
}
|
||||
|
||||
&.sorting::before,
|
||||
&.sorting::after {
|
||||
content: unset;
|
||||
}
|
||||
|
||||
&.sorting_asc {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iMi4zODRtbSIgdmlld0JveD0iMCAwIDYuMDAwMDAwMiAyLjM4NDAzODkiPjxnPjxwYXRoIGZpbGw9IiMwMDZhY2MiIGQ9Ik00LjA1IDEuNzRoLTIuMUwzIC42NHoiLz48L2c+PC9zdmc+" ) no-repeat scroll right center $table-header-background;
|
||||
padding-right: 22px;
|
||||
|
||||
&.fixed_sort {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iOS4wMSIgdmlld0JveD0iMCAwIDYgMi4zODQiPjxwYXRoIGZpbGw9IiM5NDk0OTQiIGQ9Ik00LjA1IDEuNzRoLTIuMUwzIC42NHoiLz48L3N2Zz4=" ) no-repeat scroll right center $table-header-background;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&.sorting_desc {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iMi4zODRtbSIgdmlld0JveD0iMCAwIDYuMDAwMDAwMiAyLjM4NDAzODkiPjxnPjxwYXRoIGZpbGw9IiMwMDZhY2MiIGQ9Ik00LjA1LjY0aC0yLjFMMyAxLjc0eiIvPjwvZz48L3N2Zz4=" ) no-repeat scroll right center $table-header-background;
|
||||
padding-right: 22px;
|
||||
|
||||
&.fixed_sort {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iOS4wMSIgdmlld0JveD0iMCAwIDYgMi4zODQiPjxwYXRoIGZpbGw9IiM5NDk0OTQiIGQ9Ik00LjA1LjY0aC0yLjFMMyAxLjc0eiIvPjwvc3ZnPg==" ) no-repeat scroll right center $table-header-background;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&.sorting:not(.sorting_asc):not(.sorting_desc) {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iMi41NTFtbSIgdmlld0JveD0iMCAwIDYuMDAwMDAwMyAyLjU1MDY2MTQiPjxwYXRoIGZpbGw9IiNhY2FjYWMiIGQ9Ik00LjA1IDEuNDVoLTIuMUwzIDIuNTV6Ii8+PHBhdGggZmlsbD0iI2FjYWNhYyIgZD0iTTQuMDUgMS4xaC0yLjFMMyAweiIvPjwvc3ZnPg==" ) no-repeat scroll right center $table-header-background;
|
||||
padding-right: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sorting_desc {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iMi4zODRtbSIgdmlld0JveD0iMCAwIDYuMDAwMDAwMiAyLjM4NDAzODkiPjxnPjxwYXRoIGZpbGw9IiMwMDZhY2MiIGQ9Ik00LjA1LjY0aC0yLjFMMyAxLjc0eiIvPjwvZz48L3N2Zz4=" ) no-repeat scroll right center $table-header-background;
|
||||
padding-right: 19px;
|
||||
|
||||
&.fixed_sort {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iOS4wMSIgdmlld0JveD0iMCAwIDYgMi4zODQiPjxwYXRoIGZpbGw9IiM5NDk0OTQiIGQ9Ik00LjA1LjY0aC0yLjFMMyAxLjc0eiIvPjwvc3ZnPg==" ) no-repeat scroll right center $table-header-background;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.sorting:not(.sorting_asc):not(.sorting_desc) {
|
||||
background: url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2bW0iIGhlaWdodD0iMi41NTFtbSIgdmlld0JveD0iMCAwIDYuMDAwMDAwMyAyLjU1MDY2MTQiPjxwYXRoIGZpbGw9IiNhY2FjYWMiIGQ9Ik00LjA1IDEuNDVoLTIuMUwzIDIuNTV6Ii8+PHBhdGggZmlsbD0iI2FjYWNhYyIgZD0iTTQuMDUgMS4xaC0yLjFMMyAweiIvPjwvc3ZnPg==" ) no-repeat scroll right center $table-header-background;
|
||||
padding-right: 19px;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
|
@ -392,8 +406,6 @@ tbody {
|
|||
color: #333;
|
||||
height: unset;
|
||||
left: 50%;
|
||||
margin-left: -125px;
|
||||
margin-top: -15px;
|
||||
padding: 1.5em;
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
|
@ -419,6 +431,11 @@ tbody {
|
|||
float: none;
|
||||
padding-right: 1em;
|
||||
white-space: nowrap;
|
||||
|
||||
input {
|
||||
border-radius: 0;
|
||||
padding: 1px 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.dt-buttons {
|
||||
|
@ -561,66 +578,69 @@ tbody {
|
|||
}
|
||||
} /* /.pager */
|
||||
|
||||
button,
|
||||
div,
|
||||
a {
|
||||
&.dt-button {
|
||||
background: transparent none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
color: #000;
|
||||
font-size: 1em;
|
||||
line-height: 1.7em;
|
||||
margin: 0 3px 0;
|
||||
padding: 0 .5em;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
.dt-buttons {
|
||||
button,
|
||||
div,
|
||||
a {
|
||||
&.dt-button {
|
||||
background: transparent none;
|
||||
border: 1px solid transparent;
|
||||
color: #999;
|
||||
cursor: default;
|
||||
border-radius: 4px;
|
||||
color: #000;
|
||||
font-size: 1em;
|
||||
line-height: 1.7em;
|
||||
margin: 0 3px 0;
|
||||
padding: 0 .5em;
|
||||
|
||||
&:focus {
|
||||
border: 1px solid #ADADAD;
|
||||
&::before {
|
||||
content: "";
|
||||
}
|
||||
|
||||
a,
|
||||
span {
|
||||
&.disabled {
|
||||
background: transparent none;
|
||||
border: 1px solid transparent;
|
||||
color: #999;
|
||||
cursor: default;
|
||||
opacity: 1;
|
||||
|
||||
&:focus {
|
||||
border: 1px solid #ADADAD;
|
||||
}
|
||||
|
||||
a,
|
||||
span {
|
||||
background: transparent none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:active:not( .disabled ),
|
||||
&:focus:not( .disabled ) {
|
||||
background: transparent none;
|
||||
border: 1px solid #ADADAD;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
&:active:not( .disabled ),
|
||||
&:focus:not( .disabled ) {
|
||||
background: transparent none;
|
||||
border: 1px solid #ADADAD;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
|
||||
&:not( .disabled ):hover:not( .disabled ) {
|
||||
&:not( .disabled ):hover:not( .disabled ) {
|
||||
background: #EEE none;
|
||||
border: 1px solid transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: transparent none;
|
||||
border: 1px solid transparent;
|
||||
|
||||
&:not( .disabled ) {
|
||||
background: #EEE none;
|
||||
}
|
||||
}
|
||||
|
||||
&.active:not( .disabled ):hover:not( .disabled ) {
|
||||
background: #EEE none;
|
||||
border: 1px solid transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: transparent none;
|
||||
border: 1px solid transparent;
|
||||
|
||||
&:not( .disabled ) {
|
||||
background: #EEE none;
|
||||
}
|
||||
}
|
||||
|
||||
&.active:not( .disabled ):hover:not( .disabled ) {
|
||||
background: #EEE none;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -650,6 +670,7 @@ a {
|
|||
|
||||
div {
|
||||
&.dt-button-collection {
|
||||
padding: 8px 8px 4px 8px;
|
||||
width: auto;
|
||||
|
||||
button {
|
||||
|
@ -657,6 +678,10 @@ div {
|
|||
border-radius: 2px;
|
||||
text-align: left;
|
||||
|
||||
&:hover:not(.disabled) {
|
||||
border: 1px solid #EEE;
|
||||
}
|
||||
|
||||
&.buttons-collection {
|
||||
border: 0;
|
||||
}
|
||||
|
@ -670,6 +695,10 @@ div {
|
|||
padding: .3em .7em;
|
||||
text-shadow: none;
|
||||
|
||||
&::after {
|
||||
content: unset;
|
||||
}
|
||||
|
||||
&::before {
|
||||
color: #CC0000;
|
||||
content: "\f00d";
|
||||
|
@ -699,7 +728,7 @@ div {
|
|||
box-shadow: none;
|
||||
}
|
||||
|
||||
&.active {
|
||||
&.dt-button-active {
|
||||
background: #E6F0F2 none;
|
||||
border-color: #999;
|
||||
box-shadow: none;
|
||||
|
|
|
@ -396,7 +396,7 @@
|
|||
[% END %]
|
||||
},
|
||||
[% END %]
|
||||
"iDeferLoading": defer_loading,
|
||||
"deferLoading": defer_loading,
|
||||
"columns": [
|
||||
[% FOR column IN columns %]
|
||||
[% IF default_sort_column == column %]
|
||||
|
@ -620,9 +620,9 @@
|
|||
],
|
||||
'embed': [% To.json(embed) | $raw %],
|
||||
"order": [[ [% order_column_index | html %], "asc" ]],
|
||||
'bAutoWidth': false,
|
||||
"autoWidth": false,
|
||||
'lengthMenu': [aLengthMenu, aLengthMenuLabel],
|
||||
'sPaginationType': 'full_numbers',
|
||||
"pagingType": 'full_numbers',
|
||||
"pageLength": [% Koha.Preference('PatronsPerPage') | html %],
|
||||
[% IF sticky_header %]
|
||||
"initComplete": function(settings, json) {
|
||||
|
|
|
@ -218,7 +218,7 @@
|
|||
$(document).ready(function() {
|
||||
var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'acq_acqui-home', 'accounts', 'json' ) | $raw %];
|
||||
var oTable = KohaTable("accounts", {
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
"drawCallback": function ( oSettings ) {
|
||||
if ( oSettings.aiDisplay.length == 0 )
|
||||
{
|
||||
return;
|
||||
|
@ -248,14 +248,14 @@
|
|||
var api = this.api(), data;
|
||||
footer_column_sum( api, [ 6, 7, 8, 9 ] );
|
||||
},
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": false, "aTargets": [ 0, 1 ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] }
|
||||
"columnDefs": [
|
||||
{ "visible": false, "targets": [ 0, 1 ] },
|
||||
{ "orderable": false, "targets": ["_all"] }
|
||||
],
|
||||
'bSort': true,
|
||||
'aaSortingFixed': [[ 1, 'asc' ]],
|
||||
'bPaginate': false,
|
||||
"bAutoWidth": false
|
||||
"ordering": true,
|
||||
"orderFixed": [[ 1, 'asc' ]],
|
||||
"paginate": false,
|
||||
"autoWidth": false
|
||||
}, table_settings );
|
||||
|
||||
$(oTable).treetable({
|
||||
|
|
|
@ -1079,13 +1079,13 @@
|
|||
table_settings['columns'].splice(16, 1);
|
||||
[% END %]
|
||||
KohaTable("orders", {
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"autoWidth": false,
|
||||
"exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15[% IF (Koha.Preference('EDIFACT') && ediaccount) %],16[% END %]],
|
||||
}, table_settings);
|
||||
|
||||
var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
} ) );
|
||||
$("#reopenbutton").on("click",function(e){
|
||||
e.preventDefault();
|
||||
|
|
|
@ -254,13 +254,13 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("table.baskets").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'sDom': 't',
|
||||
'bPaginate': false,
|
||||
'bFilter': false,
|
||||
'bInfo': false,
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
"aoColumnDefs": [
|
||||
{ 'aTargets': [-1], 'bSortable': false }
|
||||
"dom": 't',
|
||||
"paginate": false,
|
||||
"searching": false,
|
||||
"info": false,
|
||||
"order": [[ 1, "asc" ]],
|
||||
"columnDefs": [
|
||||
{ "targets": [-1], "orderable": false }
|
||||
]
|
||||
}));
|
||||
$("#supplierlist").change(function() {
|
||||
|
|
|
@ -323,7 +323,7 @@ Acquisitions › Koha
|
|||
$(document).ready(function() {
|
||||
$('span.hint').hide();
|
||||
KohaTable("table_orders", {
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
});
|
||||
|
||||
[% IF op == 'search' OR op == 'select' %]
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
$(document).ready(function() {
|
||||
var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
|
||||
KohaTable("histsearcht", {
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}, table_settings );
|
||||
|
||||
function AddPatron( patron_name, value, container, input_name ) {
|
||||
|
|
|
@ -110,13 +110,13 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1, -2 ], "orderable": false, "searchable": false }
|
||||
],
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
bFilter: false,
|
||||
sDom: "t"
|
||||
"info": false,
|
||||
"paging": false,
|
||||
"searching": false,
|
||||
"dom": "t"
|
||||
}));
|
||||
$("a.delete_file").click(function(){
|
||||
return ( confirm( _("Are you sure you want to delete this file ?") ) );
|
||||
|
|
|
@ -554,20 +554,20 @@
|
|||
return confirmDelete(_("Are you sure you want to delete this invoice?"));
|
||||
});
|
||||
$("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
bFilter: false,
|
||||
sDom: "t",
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "anti-the", "aTargets": [ "anti-the" ] }
|
||||
"info": false,
|
||||
"paging": false,
|
||||
"searching": false,
|
||||
"dom": "t",
|
||||
"columnDefs": [
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
]
|
||||
}));
|
||||
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
|
||||
$("#invoice_files_table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
bFilter: false,
|
||||
sDom: "t"
|
||||
"info": false,
|
||||
"paging": false,
|
||||
"searching": false,
|
||||
"dom": "t"
|
||||
}));
|
||||
[% END %]
|
||||
$("#show_all_details").click(function(){
|
||||
|
|
|
@ -439,10 +439,10 @@
|
|||
return confirmDelete(_("Are you sure you want to delete this invoice?"));
|
||||
});
|
||||
var resultst = $("table.result").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
bPaginate: false,
|
||||
aoColumnDefs: [
|
||||
{ "bSortable": false, "aTargets": [1, -1] },
|
||||
{ "bVisible": false, "aTargets": [0] }
|
||||
"paging": false,
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "targets": [1, -1] },
|
||||
{ "visible": false, "targets": [0] }
|
||||
],
|
||||
autoWidth: false
|
||||
}));
|
||||
|
|
|
@ -338,9 +338,9 @@
|
|||
var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %];
|
||||
late_orderst = KohaTable("late_orders", {
|
||||
"sorting": [[ 1, "asc" ]],
|
||||
"sPaginationType": "full",
|
||||
"bAutoWidth": false,
|
||||
"fnDrawCallback": function() {
|
||||
"pagingType": "full",
|
||||
"autoWidth": false,
|
||||
"drawCallback": function() {
|
||||
if ( typeof late_orderst != 'undefined' ) {
|
||||
check_uncheck();
|
||||
$('input:checkbox[name=ordernumber]').bind('click', check_uncheck);
|
||||
|
|
|
@ -130,11 +130,11 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
$("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
|
||||
$("#show_only_renewed").click(function(){
|
||||
|
|
|
@ -126,11 +126,11 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0 ], "visible": false, "searchable": true }, // must be searchable for fnFilter
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
$("#show_only_mine").on('click', function(e){
|
||||
e.preventDefault();
|
||||
|
|
|
@ -134,10 +134,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -355,18 +355,18 @@
|
|||
|
||||
if ( $("#receivedt").length ) {
|
||||
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"bStateSave": true,
|
||||
"iDisplayLength": 10,
|
||||
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]],
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false },
|
||||
"stateSave": true,
|
||||
"pageLength": 10,
|
||||
"lengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]],
|
||||
"columnDefs": [
|
||||
{ "targets": [ 5, -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"aoColumns": [
|
||||
{ "sType": "html" },
|
||||
{ "sType": "html" },
|
||||
{ "sType": "html" },
|
||||
{ "sType": "num-html" },
|
||||
{ "sType": "anti-the" },
|
||||
"columns": [
|
||||
{ "type": "html" },
|
||||
{ "type": "html" },
|
||||
{ "type": "html" },
|
||||
{ "type": "num-html" },
|
||||
{ "type": "anti-the" },
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
|
@ -376,7 +376,7 @@
|
|||
null,
|
||||
null
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bPaginate': false
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
//keep a copy of all budgets before removing the inactives
|
||||
|
|
|
@ -149,10 +149,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
} ) );
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -625,10 +625,10 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] }
|
||||
],
|
||||
'sDom': 't'
|
||||
"dom": 't'
|
||||
} ) );
|
||||
$('body').on('click', '.delete-contact', null, delete_contact);
|
||||
$('#add-contact').click(add_contact);
|
||||
|
|
|
@ -174,10 +174,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
$(".check_uncertain").on("change",function(){
|
||||
var form = document.getElementById("uncertainprices");
|
||||
|
|
|
@ -297,14 +297,14 @@ tr.selected td {
|
|||
<script>
|
||||
$(document).ready(function(){
|
||||
var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ 1 ], "sType": "nsb-nse" },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1, -2 ], "orderable": false, "searchable": false },
|
||||
{ "targets": [ 1 ], "type": "nsb-nse" },
|
||||
],
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
"bPaginate": false,
|
||||
"order": [[ 1, "asc" ]],
|
||||
"paginate": false,
|
||||
"searching": false,
|
||||
"bInfo":false
|
||||
"info": false
|
||||
}));
|
||||
InitLastAction();
|
||||
});
|
||||
|
|
|
@ -261,12 +261,12 @@
|
|||
});
|
||||
|
||||
$("#fieldst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bAutoWidth': false,
|
||||
'sDom': 't<"bottom pager"ilpf>',
|
||||
'sPaginationType': 'full',
|
||||
'aLengthMenu': [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
|
||||
'iDisplayLength': 20,
|
||||
'aaSorting': [[ 0, "asc" ]],
|
||||
"autoWidth": false,
|
||||
"dom": 't<"bottom pager"ilpf>',
|
||||
"pagingType": 'full',
|
||||
"lengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
|
||||
"pageLength": 20,
|
||||
"order": [[ 0, "asc" ]],
|
||||
}));
|
||||
|
||||
$(".confirmdelete").click(function(){
|
||||
|
|
|
@ -550,16 +550,16 @@
|
|||
[% END %]
|
||||
|
||||
$("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full",
|
||||
'bAutoWidth': false
|
||||
"pagingType": "full",
|
||||
"autoWidth": false
|
||||
} ) );
|
||||
|
||||
[% IF close_form %]
|
||||
$("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
sDom: "t"
|
||||
"dom": "t"
|
||||
}));
|
||||
$("#move_form").submit(function(){
|
||||
var budget_from = "[% budget_period_description | html %]";
|
||||
|
@ -572,7 +572,7 @@
|
|||
[% IF closed %]
|
||||
var oTable = $("#closed_report").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
// The following is a c/p from aqbudgets.tt and is a candidate for refactoring.
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
"drawCallback": function ( oSettings ) {
|
||||
if ( oSettings.aiDisplay.length == 0 )
|
||||
{
|
||||
return;
|
||||
|
@ -598,14 +598,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": false, "aTargets": [ 0, 1 ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] }
|
||||
"columnDefs": [
|
||||
{ "visible": false, "targets": [ 0, 1 ] },
|
||||
{ "orderable": false, "targets": ["_all"] }
|
||||
],
|
||||
'bSort': true,
|
||||
'aaSortingFixed': [[ 1, 'asc' ]],
|
||||
"bAutoWidth": false,
|
||||
"sPaginationType": "full_numbers"
|
||||
"ordering": true,
|
||||
"orderFixed": [[ 1, 'asc' ]],
|
||||
"autoWidth": false,
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
[% END %]
|
||||
$("#add_modify_budget").validate({
|
||||
|
|
|
@ -648,7 +648,7 @@
|
|||
$(document).ready(function() {
|
||||
[% IF budgets %]
|
||||
var oTable = KohaTable("budgeth", {
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
"drawCallback": function ( oSettings ) {
|
||||
if ( oSettings.aiDisplay.length == 0 )
|
||||
{
|
||||
return;
|
||||
|
@ -678,14 +678,14 @@
|
|||
var api = this.api(), data;
|
||||
footer_column_sum( api, [ 4, 6, 8, 10 ], 2 );
|
||||
},
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": false, "aTargets": [ 0, 1 ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] }
|
||||
"columnDefs": [
|
||||
{ "visible": false, "targets": [ 0, 1 ] },
|
||||
{ "orderable": false, "targets": ["_all"] }
|
||||
],
|
||||
'bSort': true,
|
||||
'aaSortingFixed': [[ 1, 'asc' ]],
|
||||
'bPaginate': false,
|
||||
"bAutoWidth": false
|
||||
"ordering": true,
|
||||
"orderFixed": [[ 1, 'asc' ]],
|
||||
"paginate": false,
|
||||
"autoWidth": false
|
||||
});
|
||||
|
||||
$(oTable).treetable({
|
||||
|
|
|
@ -304,10 +304,10 @@ Authority MARC framework › Administration › Koha
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -352,8 +352,8 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
KohaTable("categoriest", {
|
||||
"aaSorting": [[ 0, "asc" ]],
|
||||
"sPaginationType": "full"
|
||||
"order": [[ 0, "asc" ]],
|
||||
"pagingType": "full"
|
||||
});
|
||||
|
||||
if ( $("#branches option:selected").length < 1 ) {
|
||||
|
|
|
@ -157,10 +157,10 @@
|
|||
});
|
||||
|
||||
$(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
'bPaginate': false
|
||||
"paginate": false
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -231,10 +231,10 @@ Cash registers › Administration › Koha
|
|||
|
||||
$(document).ready(function() {
|
||||
var crtable = $("#table_cash_registers").DataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1, -2 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
"order": [[ 1, "asc" ]],
|
||||
"paginationType": "full",
|
||||
}));
|
||||
|
||||
|
|
|
@ -235,14 +235,14 @@
|
|||
var txtActivefilter = _("Filter system credit types");
|
||||
var txtInactivefilter = _("Show all credit types");
|
||||
var table_credit_types = $("#table_credit_types").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ 0, 1 ], "bSortable": false, "bVisible": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
{ "targets": [ 0, 1 ], "orderable": false, "visible": false },
|
||||
],
|
||||
"aaSorting": [[ 0, "asc" ],[ 2, "asc" ]],
|
||||
"sDom": 'C<"top pager"ilpfB><"#filter_s">tr<"bottom pager"ip>',
|
||||
"iDisplayLength": 20,
|
||||
"sPaginationType": "full_numbers"
|
||||
"order": [[ 0, "asc" ],[ 2, "asc" ]],
|
||||
"dom": 'C<"top pager"ilpfB><"#filter_s">tr<"bottom pager"ip>',
|
||||
"pageLength": 20,
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
$("#filter_s").html('<p><a href="#" id="filter_system"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
|
||||
$('#filter_system').click(function(e) {
|
||||
|
|
|
@ -253,14 +253,14 @@
|
|||
var txtActivefilter = _("Filter system debit types");
|
||||
var txtInactivefilter = _("Show all debit types");
|
||||
var table_debit_types = $("#table_debit_types").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ 0, 1 ], "bSortable": false, "bVisible": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
{ "targets": [ 0, 1 ], "orderable": false, "visible": false },
|
||||
],
|
||||
"aaSorting": [[ 0, "asc" ],[ 2, "asc" ]],
|
||||
"sDom": 'C<"top pager"ilpfB><"#filter_s">tr<"bottom pager"ip>',
|
||||
"iDisplayLength": 20,
|
||||
"sPaginationType": "full_numbers"
|
||||
"order": [[ 0, "asc" ],[ 2, "asc" ]],
|
||||
"dom": 'C<"top pager"ilpfB><"#filter_s">tr<"bottom pager"ip>',
|
||||
"pageLength": 20,
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
$("#filter_s").html('<p><a href="#" id="filter_system"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
|
||||
$('#filter_system').click(function(e) {
|
||||
|
|
|
@ -533,7 +533,7 @@ Item types › Administration › Koha
|
|||
|
||||
$(document).ready(function() {
|
||||
KohaTable("table_item_type", {
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}, table_settings);
|
||||
});
|
||||
|
||||
|
|
|
@ -102,8 +102,8 @@
|
|||
}
|
||||
$(document).ready(function() {
|
||||
$("#kohafields").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"paging": false
|
||||
} ));
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
"columnDefs": [
|
||||
{ 'sortable': false, 'targets': [ 'NoSort' ] }
|
||||
],
|
||||
'bPaginate': false,
|
||||
"paginate": false,
|
||||
'autoWidth': false,
|
||||
}));
|
||||
|
||||
|
|
|
@ -377,18 +377,18 @@
|
|||
}
|
||||
|
||||
$('#marc-overlay-rules').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumns": [
|
||||
{"bSearchable": false, "bSortable": false},
|
||||
{"sSortDataType": "dom-input"},
|
||||
{"sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "sSortDataType": "dom-input"},
|
||||
{"bSearchable": false, "bSortable": false},
|
||||
{"bSearchable": false, "bSortable": false}
|
||||
"columns": [
|
||||
{"searchable": false, "orderable": false},
|
||||
{"orderDataType": "dom-input"},
|
||||
{"orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderDataType": "dom-input"},
|
||||
{"searchable": false, "orderable": false},
|
||||
{"searchable": false, "orderable": false}
|
||||
],
|
||||
"pagingType": "simple"
|
||||
}));
|
||||
|
|
|
@ -318,10 +318,10 @@ MARC frameworks › Administration › Koha
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
$("#select_display").on("change",function(){
|
||||
var checked = $(this).prop("checked") ? 1: 0;
|
||||
|
|
|
@ -77,10 +77,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#od_info").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -383,7 +383,7 @@ Patron attribute types › Administration › Koha
|
|||
$(".patron_attributes_types").each(function(){
|
||||
var tableid = $(this).attr("id");
|
||||
KohaTable( tableid, {
|
||||
"bPaginate": false,
|
||||
"paginate": false,
|
||||
'autoWidth': false,
|
||||
}, null );
|
||||
});
|
||||
|
|
|
@ -1393,13 +1393,13 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
KohaTable("default-circulation-rules", {
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": false, "aTargets": [ 0,2 ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] }
|
||||
"columnDefs": [
|
||||
{ "visible": false, "targets": [ 0,2 ] },
|
||||
{ "orderable": false, "targets": ["_all"] }
|
||||
],
|
||||
"aaSortingFixed": [ [0,'asc'], [1,'asc'], [2,'asc'], [3,'asc'] ],
|
||||
"bPaginate": false,
|
||||
"bAutoWidth": false
|
||||
"orderFixed": [ [0,'asc'], [1,'asc'], [2,'asc'], [3,'asc'] ],
|
||||
"paginate": false,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -464,11 +464,11 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
[% IF ( loop ) %]$("#sysprefst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": '<"top pager"ilf>t',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2, -3 ], "bSortable": false }
|
||||
"dom": '<"top pager"ilf>t',
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1, -2, -3 ], "orderable": false }
|
||||
],
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
}));[% END %]
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -309,10 +309,10 @@
|
|||
[% ELSE %]
|
||||
$(document).ready(function() {
|
||||
$("#serverst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [-1], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [-1], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
$(".delete").on("click",function(e){
|
||||
var servername = $(this).data("servername");
|
||||
|
|
|
@ -2136,11 +2136,11 @@
|
|||
table_settings[index].columns.splice(1,1);
|
||||
}
|
||||
var dt_parameters = {
|
||||
'sDom': 't',
|
||||
'bPaginate': false,
|
||||
'bAutoWidth': false,
|
||||
"dom": 't',
|
||||
"paginate": false,
|
||||
"autoWidth": false,
|
||||
"bKohaColumnsUseNames": true,
|
||||
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
"dom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
};
|
||||
var table = KohaTable( table_name, dt_parameters, table_settings[index], 'with_filters' );
|
||||
|
||||
|
@ -2174,20 +2174,20 @@
|
|||
[% IF Koha.Preference('AcquisitionDetails') %]
|
||||
var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') | $raw %];
|
||||
var acquisitiondetails_table = KohaTable("orders", {
|
||||
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
'bPaginate': false,
|
||||
'bAutoWidth': false,
|
||||
"aaSorting": [[ 4, "desc" ]],
|
||||
"dom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
"paginate": false,
|
||||
"autoWidth": false,
|
||||
"order": [[ 4, "desc" ]],
|
||||
}, table_settings);
|
||||
[% END %]
|
||||
|
||||
[% IF suggestions.count %]
|
||||
$(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
[% END %]
|
||||
|
||||
|
@ -2209,21 +2209,21 @@
|
|||
[% IF Koha.Preference('EnableItemGroups') %]
|
||||
// Load item groups table
|
||||
var itemGroupsTable = KohaTable("items-group-table", {
|
||||
"bAutoWidth": false,
|
||||
'sDom': '<"top pager"ilp>t<"bottom pager"ip>r',
|
||||
"aoColumns": [
|
||||
"autoWidth": false,
|
||||
"dom": '<"top pager"ilp>t<"bottom pager"ip>r',
|
||||
"columns": [
|
||||
{
|
||||
"mDataProp": function( oObj ) {
|
||||
"data": function( oObj ) {
|
||||
return oObj.display_order;
|
||||
},
|
||||
},
|
||||
{
|
||||
"mDataProp": function( oObj ) {
|
||||
"data": function( oObj ) {
|
||||
return oObj.description;
|
||||
},
|
||||
},
|
||||
{
|
||||
"mDataProp": function( oObj ) {
|
||||
"data": function( oObj ) {
|
||||
[% IF CAN_user_editcatalogue_manage_item_groups %]
|
||||
return `<button class='item-group-edit btn btn-default btn-xs' data-item-group-id='${oObj.item_group_id}'>
|
||||
<i class='fa fa-edit'></i> ${_("Edit")}
|
||||
|
@ -2238,10 +2238,10 @@
|
|||
},
|
||||
},
|
||||
],
|
||||
"bPaginate": false,
|
||||
"bProcessing": true,
|
||||
"bServerSide": false,
|
||||
"sAjaxSource": `/api/v1/biblios/${biblionumber}/item_groups?_per_page=-1`,
|
||||
"paginate": false,
|
||||
"processing": true,
|
||||
"serverSide": false,
|
||||
"ajax": `/api/v1/biblios/${biblionumber}/item_groups?_per_page=-1`,
|
||||
"sAjaxDataProp": "",
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
$.getJSON( sSource, aoData, function (json) {
|
||||
|
|
|
@ -138,9 +138,9 @@
|
|||
table_settings['columns'].splice(0,1);
|
||||
[% END %]
|
||||
var table = KohaTable("table_issues", {
|
||||
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
"aaSorting": [[ 5, "desc" ]],
|
||||
"sPaginationType": "full_numbers"
|
||||
"dom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
"order": [[ 5, "desc" ]],
|
||||
"pagingType": "full_numbers"
|
||||
}, table_settings);
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -453,10 +453,10 @@
|
|||
});
|
||||
|
||||
$('#results').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bDestroy': true,
|
||||
'bServerSide': true,
|
||||
'bProcessing': true,
|
||||
'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl',
|
||||
"destroy": true,
|
||||
"serverSide": true,
|
||||
"processing": true,
|
||||
"ajax": '/cgi-bin/koha/catalogue/itemsearch.pl',
|
||||
'fnServerData': function(sSource, aoData, fnCallback) {
|
||||
aoData.push( { 'name': 'format', 'value': 'json' } );
|
||||
for (i in params) {
|
||||
|
@ -499,7 +499,7 @@
|
|||
fixedHeader: false // There is a bug on this view
|
||||
})).columnFilter({
|
||||
'sPlaceHolder': 'head:after',
|
||||
'aoColumns': [
|
||||
"columns": [
|
||||
null,
|
||||
{ 'type': 'text' },
|
||||
{ 'type': 'text' },
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"sEcho": [% sEcho | html %],
|
||||
"iTotalRecords": [% total_rows | html %],
|
||||
"iTotalDisplayRecords": [% total_rows | html %],
|
||||
"aaData": [
|
||||
"data": [
|
||||
[%- FOREACH item IN results -%]
|
||||
[%- INCLUDE 'catalogue/itemsearch_item.json.inc' item = item, user = user -%]
|
||||
[%- UNLESS loop.last %],[% END -%]
|
||||
|
|
|
@ -218,11 +218,11 @@
|
|||
// We show table ordered by descending dates by default
|
||||
// (so that the more recent query is shown first)
|
||||
$(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aaSorting": [[ 1, "desc" ]],
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
|
||||
"order": [[ 1, "desc" ]],
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0 ], "orderable": false, "searchable": false }
|
||||
],
|
||||
"sPaginationType": "full_numbers"
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
|
||||
// DataTables removes hidden rows from the DOM, so we can't expect a
|
||||
|
|
|
@ -209,12 +209,12 @@
|
|||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"dom": 't',
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
"bPaginate": false
|
||||
"order": [[ 1, "asc" ]],
|
||||
"paginate": false
|
||||
}));
|
||||
InitLastAction();
|
||||
});
|
||||
|
|
|
@ -279,12 +279,12 @@
|
|||
$(document).ready(function(){
|
||||
var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
|
||||
var thetable = KohaTable("resultst", {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 1 ], "sType": "nsb-nse" },
|
||||
"columnDefs": [
|
||||
{ "targets": [ 1 ], "type": "nsb-nse" },
|
||||
],
|
||||
"bPaginate": false,
|
||||
"paginate": false,
|
||||
"searching": false,
|
||||
"bInfo":false
|
||||
"info": false
|
||||
}, table_settings );
|
||||
InitLastAction();
|
||||
});
|
||||
|
|
|
@ -576,19 +576,19 @@
|
|||
});
|
||||
|
||||
requested_datatable = $("#article-requests-requested-table").DataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, -1], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [0, -1], "orderable": false, "searchable": false },
|
||||
],
|
||||
}));
|
||||
|
||||
pending_datatable = $("#article-requests-pending-table").DataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, -1], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [0, -1], "orderable": false, "searchable": false },
|
||||
],
|
||||
}));
|
||||
processing_datatable = $("#article-requests-processing-table").DataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, -1], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [0, -1], "orderable": false, "searchable": false },
|
||||
],
|
||||
}));
|
||||
active_datatable = requested_datatable;
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
$(document).ready(function(){
|
||||
$("#notestable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"order": [[ 1, "asc" ]],
|
||||
"aoColumnDefs": [
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, 'targets': [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
|
|
|
@ -339,13 +339,13 @@
|
|||
$('#checkoutrenew').focus();
|
||||
}
|
||||
$("#checkout_infos").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"aoColumnDefs": [
|
||||
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
}));
|
||||
});
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@
|
|||
[% END %]
|
||||
|
||||
KohaTable("overduest", {
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"autoWidth": false,
|
||||
"stateSave": true
|
||||
}, table_settings);
|
||||
|
|
|
@ -321,7 +321,7 @@
|
|||
$(document).ready(function() {
|
||||
var table_settings = [% TablesSettings.GetTableSettings('circ', 'holds', 'holds-to-pull', 'json') | $raw %];
|
||||
var holdst = KohaTable("holdst", {
|
||||
"sPaginationType": "full_numbers"
|
||||
"pagingType": "full_numbers"
|
||||
}, table_settings);
|
||||
holdst.fnAddFilters("filter");
|
||||
[%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %]
|
||||
|
|
|
@ -198,12 +198,12 @@
|
|||
var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
|
||||
$(document).ready(function() {
|
||||
KohaTable("holdst", {
|
||||
"aaSorting": [ [2,'desc'], [3,'asc'] ],
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
||||
{ "sType": "natural", "aTargets" : [ "natural" ] },
|
||||
"order": [ [2,'desc'], [3,'asc'] ],
|
||||
"columnDefs": [
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] },
|
||||
{ "type": "natural", "targets": [ "natural" ] },
|
||||
],
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"autoWidth": false
|
||||
}, table_settings);
|
||||
});
|
||||
|
|
|
@ -1443,10 +1443,10 @@
|
|||
[% END %]
|
||||
|
||||
var returns_table = KohaTable("checkedintable", {
|
||||
"bFilter":false,
|
||||
"bPaginate":false,
|
||||
"bInfo":false,
|
||||
"bSort":false,
|
||||
"searching":false,
|
||||
"paginate":false,
|
||||
"info": false,
|
||||
"ordering":false,
|
||||
"dom": '<"table_controls"B>rt',
|
||||
}, table_settings);
|
||||
|
||||
|
@ -1623,9 +1623,9 @@
|
|||
});
|
||||
|
||||
$('#items-bundle-contents-table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"bFilter": false,
|
||||
"bPaginate": false,
|
||||
"bInfo": false,
|
||||
"searching": false,
|
||||
"paginate": false,
|
||||
"info": false,
|
||||
"order": [[ 1, 'asc' ], [ 0, 'asc' ]]
|
||||
}));
|
||||
|
||||
|
|
|
@ -115,12 +115,12 @@
|
|||
$(document).ready(function() {
|
||||
[% FOREACH library IN libraries %]
|
||||
$("#transferst[% library.branchcode | html %]").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sDom": 't',
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"paginate": false
|
||||
}));
|
||||
[% END %]
|
||||
});
|
||||
|
|
|
@ -119,12 +119,12 @@
|
|||
$(document).ready(function() {
|
||||
[% FOREACH branchesloo IN branchesloop %]
|
||||
$("#transferst[% branchesloo.branchcode | html %]").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sDom": 't',
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"paginate": false
|
||||
}));
|
||||
[% END %]
|
||||
});
|
||||
|
|
|
@ -307,9 +307,9 @@
|
|||
|
||||
var table_settings = [% TablesSettings.GetTableSettings('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
|
||||
var holdst = KohaTable("holdst", {
|
||||
"sDom": 'B<"clearfix">t',
|
||||
"bSortCellsTop": true,
|
||||
"bPaginate": false
|
||||
"dom": 'B<"clearfix">t',
|
||||
"orderCellsTop": true,
|
||||
"paginate": false
|
||||
}, table_settings);
|
||||
|
||||
});
|
||||
|
|
|
@ -217,17 +217,17 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
KohaTable("holdst", {
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"order": [[1, 'asc']]
|
||||
}, holdst_table_settings);
|
||||
|
||||
KohaTable("holdso", {
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"order": [[1, 'asc']]
|
||||
}, holdso_table_settings);
|
||||
|
||||
KohaTable("holdscr", {
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"order": [[1, 'asc']]
|
||||
}, holdscr_table_settings);
|
||||
|
||||
|
|
|
@ -79,10 +79,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
eTable = $('#enrollments-table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full",
|
||||
"sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
||||
"pagingType": "full",
|
||||
"dom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1, -2 ], "orderable": false, "searchable": false },
|
||||
]
|
||||
} ));
|
||||
});
|
||||
|
|
|
@ -160,18 +160,18 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
tTable = $('#club-templates-table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full",
|
||||
"sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"pagingType": "full",
|
||||
"dom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
]
|
||||
} ));
|
||||
|
||||
cTable = $('#clubs-table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full",
|
||||
"sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"pagingType": "full",
|
||||
"dom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
]
|
||||
} ));
|
||||
|
||||
|
|
|
@ -314,8 +314,8 @@
|
|||
var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'reserves', 'course_reserves_table', 'json' ) | $raw %];
|
||||
$(document).ready(function(){
|
||||
var rtable = KohaTable("course_reserves_table", {
|
||||
"sPaginationType": "full",
|
||||
"bAutoWidth": false,
|
||||
"pagingType": "full",
|
||||
"autoWidth": false,
|
||||
}, table_settings );
|
||||
|
||||
$(".delete_item").click(function(){
|
||||
|
|
|
@ -94,8 +94,8 @@
|
|||
var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %];
|
||||
$(document).ready(function() {
|
||||
var ctable = KohaTable("course_reserves_table", {
|
||||
"sPaginationType": "full",
|
||||
"bAutoWidth": false
|
||||
"pagingType": "full",
|
||||
"autoWidth": false
|
||||
}, table_settings );
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -315,12 +315,12 @@
|
|||
[% END %]
|
||||
$("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"autoWidth": false,
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] },
|
||||
{ "targets": [ -1, -2 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"aaSorting": [[ 0, "asc" ]],
|
||||
"sPaginationType": "full"
|
||||
"order": [[ 0, "asc" ]],
|
||||
"pagingType": "full"
|
||||
}));
|
||||
$("#additems").click(function(){
|
||||
Add();
|
||||
|
|
|
@ -195,10 +195,10 @@
|
|||
return confirmDelete( _("Are you sure you want to delete this?") );
|
||||
});
|
||||
$("#labels-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full",
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"pagingType": "full",
|
||||
"order": [[ 1, "asc" ]],
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
]
|
||||
}));
|
||||
});
|
||||
|
|
|
@ -376,9 +376,9 @@
|
|||
var txtInactivefilter = _("Show all transactions");
|
||||
var table_settings = [% TablesSettings.GetTableSettings('members', 'fines', 'account-fines', 'json') | $raw %];
|
||||
var table_account_fines = KohaTable("table_account_fines", {
|
||||
"sPaginationType": "full",
|
||||
'aaSorting': [[0, 'desc']],
|
||||
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
"pagingType": "full",
|
||||
"order": [[0, 'desc']],
|
||||
"dom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
|
||||
}, table_settings);
|
||||
$("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
|
||||
$('#filter_transacs').click(function(e) {
|
||||
|
|
|
@ -142,8 +142,8 @@
|
|||
table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';});
|
||||
[% END %]
|
||||
var table = KohaTable("table_holdshistory", {
|
||||
"sPaginationType": "full",
|
||||
"aaSorting": [[4, 'desc']]
|
||||
"pagingType": "full",
|
||||
"order": [[4, 'desc']]
|
||||
}, table_settings);
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -226,7 +226,7 @@
|
|||
KohaTable("print-summary-checkouts", {
|
||||
"dom": "Bt",
|
||||
"paging": false,
|
||||
"bAutoWidth": false,
|
||||
"autoWidth": false,
|
||||
initComplete: function( settings) {
|
||||
moveColumnsButton( settings.nTable.id );
|
||||
}
|
||||
|
@ -235,7 +235,7 @@
|
|||
KohaTable("print-summary-holds", {
|
||||
"dom": "Bt",
|
||||
"paging": false,
|
||||
"bAutoWidth": false,
|
||||
"autoWidth": false,
|
||||
initComplete: function( settings) {
|
||||
moveColumnsButton( settings.nTable.id );
|
||||
}
|
||||
|
@ -244,7 +244,7 @@
|
|||
KohaTable("print-summary-fines", {
|
||||
"dom": "Bt",
|
||||
"paging": false,
|
||||
"bAutoWidth": false,
|
||||
"autoWidth": false,
|
||||
initComplete: function( settings) {
|
||||
moveColumnsButton( settings.nTable.id );
|
||||
}
|
||||
|
|
|
@ -152,8 +152,8 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aaSorting": [[ 3, "desc" ]],
|
||||
"sPaginationType": "full"
|
||||
"order": [[ 3, "desc" ]],
|
||||
"pagingType": "full"
|
||||
}));
|
||||
|
||||
$("#noticestable").on("click", ".notice-title", function(e){
|
||||
|
|
|
@ -133,10 +133,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bPaginate': false,
|
||||
'bFilter': false,
|
||||
'bInfo': false,
|
||||
'sDom': 't'
|
||||
"paginate": false,
|
||||
"searching": false,
|
||||
"info": false,
|
||||
"dom": 't'
|
||||
} ));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -181,8 +181,8 @@
|
|||
[% END %]
|
||||
var table_settings = [% TablesSettings.GetTableSettings('members', 'checkouthistory', 'checkouthistory-table', 'json') | $raw %];
|
||||
var table = KohaTable("table_readingrec", {
|
||||
"sPaginationType": "full",
|
||||
"aaSorting": [[column_sort, 'desc']]
|
||||
"pagingType": "full",
|
||||
"order": [[column_sort, 'desc']]
|
||||
}, table_settings);
|
||||
|
||||
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
|
||||
|
|
|
@ -111,8 +111,8 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"paginate": false
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -55,12 +55,12 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
$("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"aaSorting": [[ 2, "asc" ]],
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
|
||||
"dom": 't',
|
||||
"order": [[ 2, "asc" ]],
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0 ], "orderable": false, "searchable": false }
|
||||
],
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
|
||||
var table_settings = [% TablesSettings.GetTableSettings('members', 'patron-lists', 'patron-list-table', 'json') | $raw %]
|
||||
KohaTable('patron-list-table', {
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}, table_settings);
|
||||
|
||||
function AddPatron( patron_name, value, container, input_name ) {
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
"aoColumnDefs": [
|
||||
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
} ));
|
||||
$(".delete_patron").on("click", function(){
|
||||
$(".dropdown").removeClass("open");
|
||||
|
|
|
@ -269,12 +269,12 @@
|
|||
$("#description").hide();
|
||||
[% END %]
|
||||
$("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
|
||||
"columnDefs": [
|
||||
{ "targets": [ -2, -1 ], "orderable": false, "searchable": false }
|
||||
],
|
||||
"aaSorting": [[ 0, "asc" ]],
|
||||
"sPaginationType": "full",
|
||||
"aLengthMenu": [aLengthMenu, aLengthMenuLabel],
|
||||
"order": [[ 0, "asc" ]],
|
||||
"pagingType": "full",
|
||||
"lengthMenu": [aLengthMenu, aLengthMenuLabel],
|
||||
"pageLength": patronsPerPage,
|
||||
"autoWidth": false
|
||||
}));
|
||||
|
|
|
@ -264,7 +264,7 @@
|
|||
});
|
||||
|
||||
KohaTable("installed_plugins", {
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -314,32 +314,32 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
var sale_table = $("#sale").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"bPaginate": false,
|
||||
"bFilter": false,
|
||||
"bInfo": false,
|
||||
"aoColumnDefs": [{
|
||||
"aTargets": [-2],
|
||||
"bSortable": false,
|
||||
"bSearchable": false,
|
||||
"paginate": false,
|
||||
"searching": false,
|
||||
"info": false,
|
||||
"columnDefs": [{
|
||||
"targets": [-2],
|
||||
"orderable": false,
|
||||
"searchable": false,
|
||||
}, {
|
||||
"aTargets": [-3],
|
||||
"mRender": function ( data, type, full ) {
|
||||
"targets": [-3],
|
||||
"render": function ( data, type, full ) {
|
||||
var price = Number.parseFloat(data);
|
||||
return price.format_price();
|
||||
}
|
||||
}, {
|
||||
"aTargets": [-5],
|
||||
"sClass" : "editable",
|
||||
"targets": [-5],
|
||||
"className": "editable",
|
||||
}, {
|
||||
"aTargets": [-4],
|
||||
"sClass" : "editable_int",
|
||||
"targets": [-4],
|
||||
"className": "editable_int",
|
||||
}, {
|
||||
"targets": [-1],
|
||||
"visible": false,
|
||||
"searchable": false
|
||||
}],
|
||||
"aaSorting": [],
|
||||
"fnDrawCallback": function (oSettings) {
|
||||
"order": [],
|
||||
"drawCallback": function (oSettings) {
|
||||
var local = this;
|
||||
local.$('.editable').editable( function(value, settings) {
|
||||
var aPos = local.fnGetPosition( this );
|
||||
|
@ -364,11 +364,11 @@
|
|||
tooltip : _("Click to edit")
|
||||
});
|
||||
},
|
||||
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
"rowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var iTotal = aData[1] * aData[2];
|
||||
this.fnUpdate( iTotal, nRow, 3, false, false );
|
||||
},
|
||||
"fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) {
|
||||
"footerCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) {
|
||||
var iTotalPrice = 0;
|
||||
for ( var i=0 ; i<aData.length ; i++ )
|
||||
{
|
||||
|
@ -388,8 +388,8 @@
|
|||
|
||||
var items_table_settings = [% TablesSettings.GetTableSettings('pos', 'pay', 'invoices', 'json') | $raw %];
|
||||
var items_table = KohaTable("invoices", {
|
||||
"sPaginationType": "full",
|
||||
"aaSorting": [[ 0, "asc" ]],
|
||||
"pagingType": "full",
|
||||
"order": [[ 0, "asc" ]],
|
||||
"autoWidth": false
|
||||
}, items_table_settings, false);
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@
|
|||
$("#outgoing").text('[% dtotal | $Price %] ([% cdtotal | $Price %])');
|
||||
|
||||
var registers_table = $("#registers").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"bFilter": false,
|
||||
"searching": false,
|
||||
"paginationType": "full"
|
||||
}));
|
||||
|
||||
|
|
|
@ -160,12 +160,12 @@
|
|||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, 'aTargets': [ 'nosort' ] },
|
||||
{ "sType": "title-string", "aTargets" : [ "title-string" ] },
|
||||
{ "sType": "anti-the", "aTargets": [ "anti-the" ] }
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "targets": [ 'nosort' ] },
|
||||
{ "type": "title-string", "targets": [ "title-string" ] },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sPaginationType": "full_numbers"
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
|
||||
$(".cancelreturn").click(function(){
|
||||
|
|
|
@ -160,10 +160,10 @@
|
|||
$(document).ready(function() {
|
||||
$("#recallswaiting-table, #recallsover-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"autoWidth": false,
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, 'aTargets': [ 'nosort' ] },
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "targets": [ 'nosort' ] },
|
||||
],
|
||||
"sPaginationType": "full_numbers"
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
|
||||
$(".revert_recall").click(function(e) {
|
||||
|
|
|
@ -218,8 +218,8 @@
|
|||
<script id="js">
|
||||
$(document).ready(function() {
|
||||
$("#tbl_cash_register_stats").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"iDisplayLength": 50,
|
||||
"sPaginationType": "full_numbers"
|
||||
"pageLength": 50,
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1903,9 +1903,9 @@
|
|||
[% IF (saved1) %]
|
||||
var table_settings = [% TablesSettings.GetTableSettings( 'reports', 'saved-sql', 'table_reports', 'json' ) | $raw %];
|
||||
var rtable = KohaTable("table_reports", {
|
||||
'bAutoWidth': false,
|
||||
'sPaginationType': 'full',
|
||||
'aaSorting': [[ 1, "asc" ]],
|
||||
"autoWidth": false,
|
||||
"pagingType": 'full',
|
||||
"order": [[ 1, "asc" ]],
|
||||
"language": {
|
||||
"zeroRecords": _("No matching reports found")
|
||||
},
|
||||
|
@ -2302,14 +2302,14 @@
|
|||
$("#mana_search_result_label").text(_("Results from Mana Knowledge Base"));
|
||||
$("#mana-loading").hide();
|
||||
$("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults,{
|
||||
"sPaginationType":"full",
|
||||
"pagingType": "full",
|
||||
"autoWidth": false,
|
||||
"columnDefs": [
|
||||
{ "width": "35%", "targets": 1 }
|
||||
],
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ 'anti-the'] }
|
||||
]
|
||||
}));
|
||||
|
||||
|
|
|
@ -211,12 +211,12 @@
|
|||
[% END %]
|
||||
|
||||
var lostitems_table = KohaTable("lostitems-table", {
|
||||
"aaSorting": [],
|
||||
"aoColumnDefs": [
|
||||
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
|
||||
"order": [],
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] }
|
||||
],
|
||||
'bAutoWidth': false,
|
||||
"bPaginate": false,
|
||||
"autoWidth": false,
|
||||
"paginate": false,
|
||||
}, table_settings, 'with_filters');
|
||||
|
||||
function itemSelectionBuildExportLink() {
|
||||
|
|
|
@ -105,8 +105,8 @@
|
|||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#itemtypest").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"paginate": false
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"bPaginate": false,
|
||||
"paginate": false,
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1358,8 +1358,8 @@
|
|||
[% END %]
|
||||
|
||||
var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bPaginate': false,
|
||||
"sDom": '<"top pager"ilf>t',
|
||||
"paginate": false,
|
||||
"dom": '<"top pager"ilf>t',
|
||||
}));
|
||||
|
||||
//Override fieldset styling for dataTables search box
|
||||
|
|
|
@ -241,12 +241,12 @@
|
|||
var sTable;
|
||||
$(document).ready(function() {
|
||||
sTable = $("#claimst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
|
||||
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
|
||||
"dom": 't',
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0 ], "orderable": false, "searchable": false },
|
||||
{ "type": "anti-the", "targets": [ 'anti-the'] }
|
||||
],
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
}));
|
||||
sTable.fnAddFilters("filter", "200");
|
||||
$('#supplierid').change(function() {
|
||||
|
|
|
@ -355,15 +355,15 @@
|
|||
$("#subscription_years a:first").tab("show");
|
||||
}
|
||||
$(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0,-1 ], "orderable": false, "searchable": false }
|
||||
],
|
||||
"aaSorting": [[0, 'desc']],
|
||||
"sDom": 't',
|
||||
"bAutoWidth": false,
|
||||
"bPaginate": false,
|
||||
"bInfo": false,
|
||||
"bFilter": false,
|
||||
"order": [[0, 'desc']],
|
||||
"dom": 't',
|
||||
"autoWidth": false,
|
||||
"paginate": false,
|
||||
"info": false,
|
||||
"searching": false,
|
||||
} ));
|
||||
|
||||
$(".CheckAll").on("click", function(e){
|
||||
|
|
|
@ -340,29 +340,29 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
var osrlt = $("#opened_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full",
|
||||
"pagingType": "full",
|
||||
"order": [[ 2, "asc" ]],
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ 'anti-the'] }
|
||||
]
|
||||
}));
|
||||
|
||||
var csrlt = $("#closed_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
// FIXME sort function of additional_fields!
|
||||
"order": [[ 2, "asc" ]],
|
||||
"sPaginationType": "full",
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, 'aTargets': [ 'NoSort' ] },
|
||||
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
|
||||
"pagingType": "full",
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ 'anti-the'] }
|
||||
]
|
||||
}));
|
||||
|
||||
var manarlt = $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "full",
|
||||
"aoColumnDefs": [
|
||||
{ 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
||||
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
|
||||
"pagingType": "full",
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ 'anti-the'] }
|
||||
]
|
||||
}));
|
||||
|
||||
|
|
|
@ -445,14 +445,14 @@
|
|||
|
||||
var table_settings = [% TablesSettings.GetTableSettings( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %];
|
||||
var table = KohaTable("orders", {
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": false, "aTargets": [ 'NoVisible' ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] },
|
||||
"columnDefs": [
|
||||
{ "visible": false, "targets": [ 'NoVisible' ] },
|
||||
{ "orderable": false, "targets": ["_all"] },
|
||||
],
|
||||
|
||||
'bPaginate': false,
|
||||
'bAutoWidth': false,
|
||||
'bSort': false,
|
||||
"paginate": false,
|
||||
"autoWidth": false,
|
||||
"ordering": false,
|
||||
}, table_settings);
|
||||
|
||||
[% IF orders_grouped.size %]
|
||||
|
|
|
@ -386,10 +386,10 @@
|
|||
$(document).ready(function(){
|
||||
|
||||
$("#numberpatternst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
}));
|
||||
|
||||
$(".delete_pattern").on("click",function(){
|
||||
|
|
|
@ -113,11 +113,11 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
|
|||
}
|
||||
});
|
||||
$("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1, -2 ], "orderable": false, "searchable": false },
|
||||
],
|
||||
"aaSorting": [[ 0, "asc" ]],
|
||||
"sPaginationType": "full"
|
||||
"order": [[ 0, "asc" ]],
|
||||
"pagingType": "full"
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -75,10 +75,10 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
|
||||
"columnDefs": [
|
||||
{ "targets": [ -1 ], "orderSequence": [ "desc", "asc" ], "searchable": false }
|
||||
],
|
||||
"bPaginate": false
|
||||
"paginate": false
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -572,11 +572,11 @@
|
|||
|
||||
var table = $("#table_additional_contents").DataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"order": [[ 4, "desc" ]],
|
||||
"aoColumnDefs": [
|
||||
"columnDefs": [
|
||||
{ "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] }
|
||||
],
|
||||
"sPaginationType": "full_numbers"
|
||||
"pagingType": "full_numbers"
|
||||
}));
|
||||
|
||||
$("#del_form").on("click", ".delete_news", function(e){
|
||||
|
|
|
@ -301,23 +301,23 @@
|
|||
[% END %]
|
||||
|
||||
$("table#biblios").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ 3, 4 ], "sType": "num-html" }
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0 ], "orderable": false, "searchable": false },
|
||||
{ "targets": [ 3, 4 ], "type": "num-html" }
|
||||
],
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
$("table#authorities").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [ 3 ], "sType": "num-html" }
|
||||
"columnDefs": [
|
||||
{ "targets": [ 0 ], "orderable": false, "searchable": false },
|
||||
{ "targets": [ 3 ], "type": "num-html" }
|
||||
],
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
$("#selectrecords").on("submit",function(){
|
||||
|
|
|
@ -249,23 +249,23 @@
|
|||
$("#selectall").click();
|
||||
|
||||
$("#checkouts").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [1], "sType": "num-html" }
|
||||
"columnDefs": [
|
||||
{ "targets": [0, 3], "orderable": false, "searchable": false },
|
||||
{ "targets": [1], "type": "num-html" }
|
||||
],
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
$("#checkouts_result").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [1], "sType": "num-html" }
|
||||
"columnDefs": [
|
||||
{ "targets": [0, 3], "orderable": false, "searchable": false },
|
||||
{ "targets": [1], "type": "num-html" }
|
||||
],
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
$("#extend_due_dates_form").on('submit', function(e) {
|
||||
|
|
|
@ -319,23 +319,23 @@
|
|||
$("#selectall").click();
|
||||
|
||||
$("table#biblios").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [1], "sType": "num-html" }
|
||||
"columnDefs": [
|
||||
{ "targets": [0, 3], "orderable": false, "searchable": false },
|
||||
{ "targets": [1], "type": "num-html" }
|
||||
],
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
$("table#authorities").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false },
|
||||
{ "aTargets": [1], "sType": "num-html" }
|
||||
"columnDefs": [
|
||||
{ "targets": [0, 3], "orderable": false, "searchable": false },
|
||||
{ "targets": [1], "type": "num-html" }
|
||||
],
|
||||
"sDom": 't',
|
||||
"aaSorting": [],
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"order": [],
|
||||
"paginate": false
|
||||
}));
|
||||
|
||||
$("#mainformsubmit").click(function() {
|
||||
|
|
|
@ -581,12 +581,12 @@
|
|||
first_td.html(weekdays[first_td.html()]);
|
||||
});
|
||||
$("#holidayweeklyrepeatable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"bPaginate": false
|
||||
"dom": 't',
|
||||
"paginate": false
|
||||
}));
|
||||
var tables = $("#holidayexceptions, #holidaysyearlyrepeatable, #holidaysunique").DataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"bPaginate": false,
|
||||
"dom": 't',
|
||||
"paginate": false,
|
||||
"createdRow": function( row, data, dataIndex ) {
|
||||
var holiday = $(row).data("date");
|
||||
if( holiday < datestring ){
|
||||
|
|
|
@ -407,20 +407,20 @@
|
|||
|
||||
$(document).ready(function(){
|
||||
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'sPaginationType': 'full_numbers',
|
||||
"pagingType": 'full_numbers',
|
||||
[% IF compareinv2barcd %]
|
||||
// sort on callnumber
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
"order": [[ 1, "asc" ]],
|
||||
[% ELSE %]
|
||||
// first column contains checkboxes
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
||||
{ "bSortable": false, "bSearchable": false, "aTargets": [ 0 ] }
|
||||
"columnDefs": [
|
||||
{ "type": "anti-the", "targets": [ "anti-the" ] },
|
||||
{ "orderable": false, "searchable": false, "targets": [ 0 ] }
|
||||
],
|
||||
// 3rd column is callnumber
|
||||
"aaSorting": [[ 2, "asc" ]],
|
||||
"order": [[ 2, "asc" ]],
|
||||
[% END %]
|
||||
'fnDrawCallback': function() {
|
||||
"drawCallback": function() {
|
||||
//bind the click handler script to the newly created elements held in the table
|
||||
$('.openWin').bind('click',function(e){
|
||||
e.preventDefault();
|
||||
|
|
|
@ -443,21 +443,21 @@
|
|||
|
||||
[% IF import_batch_id %]
|
||||
$("#records-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"bAutoWidth": false,
|
||||
"bFilter": false,
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": 'batch_records_ajax.pl',
|
||||
"sPaginationType": "full_numbers",
|
||||
"sDom": '<"top pager"iflp>rt<"bottom pager"flp><"clear">',
|
||||
"aoColumns": [
|
||||
{ "mDataProp": "import_record_id" },
|
||||
{ "mDataProp": "citation" },
|
||||
{ "mDataProp": "status" },
|
||||
{ "mDataProp": "overlay_status" },
|
||||
{ "mDataProp": null, "sDefaultContent": "" },
|
||||
{ "mDataProp": null, "sDefaultContent": "" },
|
||||
{ "mDataProp": "matched" }
|
||||
"autoWidth": false,
|
||||
"searching": false,
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": 'batch_records_ajax.pl',
|
||||
"pagingType": "full_numbers",
|
||||
"dom": '<"top pager"iflp>rt<"bottom pager"flp><"clear">',
|
||||
"columns": [
|
||||
{ "data": "import_record_id" },
|
||||
{ "data": "citation" },
|
||||
{ "data": "status" },
|
||||
{ "data": "overlay_status" },
|
||||
{ "data": null, "defaultContent": "" },
|
||||
{ "data": null, "defaultContent": "" },
|
||||
{ "data": "matched" }
|
||||
],
|
||||
"fnServerData": function(sSource, aoData, fnCallback) {
|
||||
aoData.push({ "name": "import_batch_id", "value": [% import_batch_id | html %] });
|
||||
|
@ -472,7 +472,7 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
"fnRowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
|
||||
"rowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
|
||||
[% IF(record_type == 'auth') %]
|
||||
var record_details_url = "/cgi-bin/koha/authorities/detail.pl?authid=";
|
||||
[% ELSE %]
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue