Changeset 11017


Ignore:
Timestamp:
31 Jan 2014, 10:16:02 (11 years ago)
Author:
Henrik Bettermann
Message:

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.

Location:
main/waeup.kofa/branches/uli-diazo-themed/layout
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/layout/theme.html

    r10999 r11017  
    1414          rel="stylesheet">
    1515    <link href="static/css/jquery.dataTables.css"
     16          rel="stylesheet">
     17    <link href="static/css/jquery-ui.css"
    1618          rel="stylesheet">
    1719    <link href="static/css/base.css" rel="stylesheet">
     
    438440
    439441    <script src="static/js/jquery.dataTables.min.js"></script>
    440 
    441     <script type="text/javascript">
    442       $(document).ready(function(){
    443         $('.dataTable').dataTable();
    444 
    445         $('.dataTableFiles').dataTable( {
    446                 "aaSorting": [[ 2, "desc" ]],
    447         } );
    448 
    449         $('.dataTableManage').dataTable( {
    450                 "aaSorting": [[ 1, "asc" ]],
    451                 "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }]
    452         } );
    453 
    454         $('.dataTableManageFiles').dataTable( {
    455                 "aaSorting": [[ 3, "desc" ]],
    456                 "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }]
    457         } );
    458 
    459         //* activate current tab, if any... */
    460         $('a[href="' + window.location.hash + '"]').trigger('click');
    461       });
    462     </script>
     442    <script src="static/js/kofa-datatables.js"></script>
     443    <script src="static/js/jquery-ui.min.js"></script>
     444    <script src="static/js/kofa-datepicker.js"></script>
    463445
    464446  </body>
Note: See TracChangeset for help on using the changeset viewer.