Subversion Repositories SmartDukaan

Rev

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

Rev 14491 Rev 14515
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) {
Line 14... Line 14...
14
        });
14
        });
15
        
15
        
16
        return false;
16
        return false;
17
    });
17
    });
18
    
18
    
19
    $('#doa-out').on('submit', function() {
19
    $('.doa-out').on('submit', function() {
20
        $.ajax({
20
        $.ajax({
21
            type    : "PUT",
21
            type    : "PUT",
22
            url     : "/inventory/doa-out/" + $(this).attr('inventoryItemId'),
22
            url     : "/inventory/doa-out/" + $(this).attr('inventoryItemId'),
23
            data    : $(this).serialize(),
23
            data    : $(this).serialize(),
24
            success : function(response) {
24
            success : function(response) {