Subversion Repositories SmartDukaan

Rev

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

Rev 27541 Rev 27550
Line 37... Line 37...
37
	    		</table>
37
	    		</table>
38
			</div>
38
			</div>
39
			
39
			
40
<script type="text/javascript">
40
<script type="text/javascript">
41
$(document).ready(function() {
41
$(document).ready(function() {
-
 
42
 
-
 
43
   $('#warehouseBrandItemStock thead tr').clone(true).appendTo( '#warehouseBrandItemStock thead' );
-
 
44
    $('#warehouseBrandItemStock thead tr:eq(1) th').each( function (i) {
-
 
45
        var title = $(this).text();
-
 
46
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
-
 
47
 
-
 
48
        $( 'input', this ).on( 'keyup change', function () {
-
 
49
            if ( table.column(i).search() !== this.value ) {
-
 
50
                table
-
 
51
                    .column(i)
-
 
52
                    .search( this.value )
-
 
53
                    .draw();
-
 
54
            }
-
 
55
        } );
-
 
56
    } )
42
    indentable = $('#warehouseBrandItemStock').DataTable();
57
  var table = $('#warehouseBrandItemStock').DataTable( {
-
 
58
        orderCellsTop: true,
-
 
59
        fixedHeader: true
-
 
60
    } );
43
});
61
});
44
 
62
 
45
 
63
 
46
 
64
 
47
</script>
65
</script>
48
66