Subversion Repositories SmartDukaan

Rev

Rev 4754 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4687 mandeep.dh 1
$(function() {
2
    $('input#changeColor').live('click', function() {
3
        var oldItemId = $(this).parent().siblings('#itemId').html();
4
        var poId      = $('input#poId').val();
5
        $.ajax({
6
            type    : 'GET',
7
            url     : '/inventory/purchase-order!fetchSimilarItems?oldItemId=' + oldItemId + '&id=' + poId,
8
            success : function(response) {
9
                $('#form-' + oldItemId).html(response);
10
            }
11
        });
12
    });
13
 
14
    $('input#cancel').live('click', function() {
15
        document.location.href = '/inventory/purchase-order/' + $('input#poId').val();
16
    });
17
 
18
 
19
});