Sha256: 77bc71f33f460f16e5c2c94195e0928de3594f7ac14d14175cd01e5fdb25fd4a
Contents?: true
Size: 699 Bytes
Versions: 43
Compression:
Stored size: 699 Bytes
Contents
jQuery(document).ready(function(){ $("#add_product_name").product_autocomplete(); $("#add_line_item_to_order").live("click", function(){ if($('#add_variant_id').val() == ''){ return false; } update_target = jQuery(this).attr("data-update"); jQuery.ajax({ dataType: 'script', url: this.href, type: "POST", data: {"line_item[variant_id]": $('#add_variant_id').val(), "line_item[quantity]": $('#add_quantity').val()}, success: function(data){ $("#"+update_target).html(data); $('#add_product_name').val(''); $('#add_variant_id').val(''); $('#add_quantity').val(1) } }); return false; }); });
Version data entries
43 entries across 31 versions & 8 rubygems