Ignore:
Timestamp:
3 Feb 2014, 08:06:34 (11 years ago)
Author:
Henrik Bettermann
Message:

Reinsert dataTables length selector but customise display parameters.

Location:
main/waeup.kofa/branches/uli-diazo-themed/layout/static
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/layout/static/css/base.css

    r11033 r11038  
    227227}
    228228
    229 .dataTables_length {
    230     display: none;
    231 }
    232 
    233229.dataTables_filter input {
    234230    width: 60%;
  • main/waeup.kofa/branches/uli-diazo-themed/layout/static/js/kofa-datatables.js

    r11017 r11038  
    11$(document).ready(function(){
    2   $('.dataTable').dataTable();
     2
     3  $('.dataTable').dataTable( {
     4    "iDisplayLength": 1000,
     5    "iDisplayEnd": 1000,
     6    "aLengthMenu": [ 50, 100, 1000, 5000 ],
     7  } );
    38
    49        $('.dataTableFiles').dataTable( {
    5                 "aaSorting": [[ 2, "desc" ]],
     10    "aaSorting": [[ 2, "desc" ]],
     11    "iDisplayLength": 1000,
     12    "iDisplayEnd": 1000,
     13    "aLengthMenu": [ 50, 100, 1000, 5000 ],
    614        } );
    715
    816        $('.dataTableManage').dataTable( {
    9                 "aaSorting": [[ 1, "asc" ]],
    10                 "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }]
     17    "aaSorting": [[ 1, "asc" ]],
     18    "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }],
     19    "iDisplayLength": 1000,
     20    "iDisplayEnd": 1000,
     21    "aLengthMenu": [ 50, 100, 1000, 5000 ],
    1122        } );
    1223
    1324        $('.dataTableManageFiles').dataTable( {
    14                 "aaSorting": [[ 3, "desc" ]],
    15                 "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }]
     25    "aaSorting": [[ 3, "desc" ]],
     26    "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }],
     27    "iDisplayLength": 1000,
     28    "iDisplayEnd": 1000,
     29    "aLengthMenu": [ 50, 100, 1000, 5000 ],
    1630        } );
    1731
Note: See TracChangeset for help on using the changeset viewer.