Subversion Repositories SmartDukaan

Rev

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

Rev 4687 Rev 5110
Line 1... Line 1...
1
$(function() {
1
$(function() {
-
 
2
    $('table#current-inventory').dataTable({
-
 
3
        "aaSorting" : [ [ 1, 'desc' ] ],
-
 
4
        "iDisplayLength" : 20,
-
 
5
        "sDom": 'T<"clear">lfrtip',
-
 
6
        "aLengthMenu" : [ [ 20, 50, 100, -1 ], [ 20, 50, 100, "All" ] ]
-
 
7
    });
-
 
8
 
2
    $('.increaseAvailabilityForm').hide();
9
    $('.increaseAvailabilityForm').hide();
3
    
10
    
4
    $('.increaseAvailabilityButton').live('click', function() {
11
    $('.increaseAvailabilityButton').live('click', function() {
5
        $(this).hide();
12
        $(this).hide();
6
        $(this).siblings('.increaseAvailabilityForm').show();
13
        $(this).siblings('.increaseAvailabilityForm').show();