Sha256: d62b43feba18ccfc50337447c8f1594a9568bffd4e54fef4c5354c28cfff83e4
Contents?: true
Size: 567 Bytes
Versions: 20
Compression:
Stored size: 567 Bytes
Contents
$.each($('td.qty input'), function(i, inpt){ $(inpt).delayedObserver(function() { var id = $(this).attr('id').replace("order_line_items_attributes_", "").replace("_quantity", ""); id = "#order_line_items_attributes_" + id + "_id"; jQuery.ajax({ type: "POST", url: "/admin/orders/" + $('input#order_number').val() + "/line_items/" + $(id).val(), data: ({_method: "put", "line_item[quantity]": $(this).val()}), complete: function(resp){ $('#order-form-wrapper').html(resp.responseText); } }); }, 0,5); });
Version data entries
20 entries across 20 versions & 1 rubygems