Sha256: 39688daf350ca44d487ecc866ea6b7deb3354ea34be5b1c46f5cac43639a60ee
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
$(document).ready(function(){ if ($("#add_product_name").length > 0) $("#add_product_name").product_autocomplete(); $("#add_line_item_to_order").live("click", function(){ if($('#add_variant_id').val() == ''){ return false; } update_target = $(this).attr("data-update"); $.ajax({ dataType: 'script', url: this.href, type: "POST", data: {"line_item[variant_id]": $('#add_variant_id').val(), "line_item[quantity]": $('#add_quantity').val()} }); return false; }); $("#add_product_name").live("click", function() { $("#add_product_name").product_autocomplete(); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-1.0.0.rc2 | app/assets/javascripts/admin/orders/edit.js |
spree_core-1.0.0.rc1 | app/assets/javascripts/admin/orders/edit.js |