Sha256: df1178b137ad21db707cd3433c27f0c40b5b02434fe30ae5f9286485534b4168
Contents?: true
Size: 520 Bytes
Versions: 4
Compression:
Stored size: 520 Bytes
Contents
$(document).ready(function() { $.each($('td.qty input'), function(i, input) { $(input).live('change', function() { var id = "#" + $(this).attr('id').replace("_quantity", "_id"); console.log($(this)) console.log($(id)) jQuery.post("/admin/orders/" + $('input#order_number').val() + "/line_items/" + $(id).val(), { _method: "put", "line_item[quantity]": $(this).val()}, function(resp) { $('#order-form-wrapper').html(resp.responseText); }) }) }) });
Version data entries
4 entries across 4 versions & 1 rubygems