Subversion Repositories SmartDukaan

Rev

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

Rev 14515 Rev 14520
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
    $('table#doa-items').dataTable({
2
    $('table#doa-items').dataTable({
3
    	"lengthMenu": [[20, 50, 100, -1], [20, 50, 100, "All"]]
3
    	"lengthMenu": [[20, 50, 100, -1], [20, 50, 100, "All"]]
4
    });
4
    });
5
    
5
    
6
    $('.doa-in').on('submit', function() {
6
    /*$('.doa-in').on('submit', function() {
7
        $.ajax({
7
        $.ajax({
8
            type    : "PUT",
8
            type    : "PUT",
9
            url     : "/inventory/doa-in/" + $(this).attr('inventoryItemId'),
9
            url     : "/inventory/doa-in/" + $(this).attr('inventoryItemId'),
10
            data    : $(this).serialize(),
10
            data    : $(this).serialize(),
11
            success : function(response) {
11
            success : function(response) {
12
                document.location.href = "/inventory/doa-in";
12
                document.location.href = "/inventory/doa-in";
13
            }
13
            },
-
 
14
            
14
        });
15
        });
15
        
16
        
16
        return false;
17
        return false;
17
    });
18
    });*/
18
    
19
    
19
    $('.doa-out').on('submit', function() {
20
    $('.doa-out').on('submit', function() {
20
        $.ajax({
21
        $.ajax({
21
            type    : "PUT",
22
            type    : "PUT",
22
            url     : "/inventory/doa-out/" + $(this).attr('inventoryItemId'),
23
            url     : "/inventory/doa-out/" + $(this).attr('inventoryItemId'),