Subversion Repositories SmartDukaan

Rev

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

Rev 27609 Rev 27610
Line 312... Line 312...
312
	
312
	
313
	
313
	
314
<script type="text/javascript">
314
<script type="text/javascript">
315
 var editor;    
315
 var editor;    
316
 $(document).ready(function() {
316
 $(document).ready(function() {
317
  
-
 
-
 
317
 console.log($('#lead-table tbody tr').length)
-
 
318
   if($('#lead-table tbody tr').length > 1){
318
      $('#lead-table thead tr').clone(true).appendTo( '#lead-table thead' );
319
    $('#lead-table thead tr').clone(true).appendTo( '#lead-table thead' );
319
    $('#lead-table thead tr:eq(1) th').each( function (i) {
320
    $('#lead-table thead tr:eq(1) th').each( function (i) {
320
        var title = $(this).text();
321
        var title = $(this).text();
321
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
322
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
322
 
323
 
323
        $( 'input', this ).on( 'keyup change', function () {
324
        $( 'input', this ).on( 'keyup change', function () {
Line 346... Line 347...
346
                   { type: 'date-euro', targets: 9 }
347
                   { type: 'date-euro', targets: 9 }
347
                  
348
                  
348
            ]
349
            ]
349
     
350
     
350
    } );
351
    } );
-
 
352
  }
351
    
353
    
352
} );
354
} );
353
</script>
355
</script>
354
	
356
	
355
357