Last change
on this file since 11019 was
11017,
checked in by Henrik Bettermann, 11 years ago
|
Use jquery-ui for datepicker (only!).
This is a temporary solution. jquery-ui should not be loaded if datepicker isn't used. The same holds for datatables.
|
File size:
521 bytes
|
Rev | Line | |
---|
[11017] | 1 | $(document).ready(function(){ |
---|
| 2 | $('.dataTable').dataTable(); |
---|
| 3 | |
---|
| 4 | $('.dataTableFiles').dataTable( { |
---|
| 5 | "aaSorting": [[ 2, "desc" ]], |
---|
| 6 | } ); |
---|
| 7 | |
---|
| 8 | $('.dataTableManage').dataTable( { |
---|
| 9 | "aaSorting": [[ 1, "asc" ]], |
---|
| 10 | "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }] |
---|
| 11 | } ); |
---|
| 12 | |
---|
| 13 | $('.dataTableManageFiles').dataTable( { |
---|
| 14 | "aaSorting": [[ 3, "desc" ]], |
---|
| 15 | "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }] |
---|
| 16 | } ); |
---|
| 17 | |
---|
| 18 | //* activate current tab, if any... */ |
---|
| 19 | $('a[href="' + window.location.hash + '"]').trigger('click'); |
---|
| 20 | }); |
---|
Note: See
TracBrowser for help on using the repository browser.