Rev 7410 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {$('input#changeColor').live('click', function() {var oldItemId = $(this).parent().siblings('#itemId').html();var poId = $('input#poId').val();$.ajax({type : 'GET',url : '/inventory/purchase-order!fetchSimilarItems?oldItemId=' + oldItemId + '&id=' + poId,success : function(response) {$('#form-' + oldItemId).html(response);}});});$('input#cancel').live('click', function() {document.location.href = '/inventory/purchase-order/' + $('input#poId').val();});});