From f909ba88c180769859d667c991eaec2fa5e2abbb Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Mon, 14 Oct 2013 20:42:51 -0700 Subject: [PATCH] Remove some dead order admin javascript The element referred to was removed in 72e5d47 Fixes #3872 --- .../assets/javascripts/admin/orders/edit.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/backend/app/assets/javascripts/admin/orders/edit.js b/backend/app/assets/javascripts/admin/orders/edit.js index 6658d1ea111..26d38c7ea0d 100644 --- a/backend/app/assets/javascripts/admin/orders/edit.js +++ b/backend/app/assets/javascripts/admin/orders/edit.js @@ -1,22 +1,5 @@ $(document).ready(function () { 'use strict'; - $('#add_line_item_to_order').on('click', function () { - if ($('#add_variant_id').val() === '') { - return false; - } - - var update_target = '#' + $(this).attr('data-update'); - $.post(this.href, { - 'line_item[variant_id]': $('#add_variant_id').val(), - 'line_item[quantity]': $('#add_quantity').val() - }, - - function (data) { - $(update_target).html(data); - }); - return false; - }); - $('[data-hook="add_product_name"]').find('.variant_autocomplete').variantAutocomplete(); -}); \ No newline at end of file +});