Subversion Repositories SmartDukaan

Rev

Rev 27816 | Rev 27820 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27816 Rev 27817
Line 430... Line 430...
430
 
430
 
431
<script type="text/javascript">
431
<script type="text/javascript">
432
 
432
 
433
 
433
 
434
    $(document).ready(function () {
434
    $(document).ready(function () {
435
  /*    $('#example thead tr').clone(true).appendTo( '#example thead' );
-
 
436
   $('#example thead tr:eq(1) th').each( function (i) {
-
 
437
        var title = $(this).text();
-
 
438
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
-
 
439
 
-
 
440
        $( 'input', this ).on( 'keyup change', function () {
-
 
441
            if ( table.column(i).search() !== this.value ) {
-
 
442
                table
-
 
443
                    .column(i)
-
 
444
                    .search( this.value )
-
 
445
                    .draw();
-
 
446
            }
-
 
447
        } );
-
 
448
    } )*/
-
 
449
 
435
 
450
        var dtable = $('#example').DataTable(
436
        var dtable = $('#example').DataTable(
451
                {
437
                {
452
 
438
 
453
                    "bPaginate": true,
439
                    "bPaginate": true,
Line 455... Line 441...
455
                    "bFilter": true,
441
                    "bFilter": true,
456
                    "bInfo": false,
442
                    "bInfo": false,
457
                    "bAutoWidth": false,
443
                    "bAutoWidth": false,
458
                    "scrollX": true,
444
                    "scrollX": true,
459
                 
445
                 
-
 
446
 
460
                   "columnDefs": [
447
                   "columnDefs": [
-
 
448
                   { "targets": 2, "orderDataType":  "date-dd-mmm-yyyy", "type":"string" },
-
 
449
                  
461
                   { "targets": 3, "orderDataType": "dom-text", "type": "string" },
450
                   { "targets": 3, "orderDataType": "dom-text", "type": "string" },
462
                   { "targets": 4, "orderDataType": "dom-text", "type": "string" },
451
                   { "targets": 4, "orderDataType": "dom-text", "type": "string" },
463
                  { "targets": 5, "orderDataType": "dom-text", "type": "string" },
452
                  { "targets": 5, "orderDataType": "dom-text", "type": "string" },
464
                  { "targets": 6, "orderDataType": "dom-text", "type": "string" },
453
                  { "targets": 6, "orderDataType": "dom-text", "type": "string" },
465
                  { "targets": 7, "orderDataType": "dom-text", "type": "string" },
454
                  { "targets": 7, "orderDataType": "dom-text", "type": "string" },
466
                  { "targets": 9, "orderDataType": "dom-text", "type": "string" },  
455
                  { "targets": 9, "orderDataType": "dom-text", "type": "string" },  
467
                  { "targets": 10, "orderDataType": "dom-text", "type": "string" },
456
                  { "targets": 10, "orderDataType": "dom-text", "type": "string" },
468
                  { "targets": 12, "orderDataType": "dom-text", "type": "string" },
457
                  { "targets": 12, "orderDataType": "dom-text", "type": "string" },
-
 
458
                  { "targets": 13, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
469
                  { "targets": 21, "orderDataType": "dom-text", "type": "string" },
459
                  { "targets": 21, "orderDataType": "dom-text", "type": "string" },
-
 
460
                 { "targets": 22, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
-
 
461
                  { "targets": 23, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
-
 
462
                 { "targets": 24, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
-
 
463
                { "targets": 25, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
470
                { "targets": 26, "orderDataType": "dom-text", "type": "string" }
464
                { "targets": 26, "orderDataType": "dom-text", "type": "string" },
-
 
465
                  { "targets": 27, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
-
 
466
                { "targets": 28, "orderDataType": "date-dd-mmm-yyyy", "type": "string" }
471
                        ]
467
                        ]
472
                });
468
                });
473
 
469
 
474
 
470
 
475
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
471
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )