Skip to content

Commit

Permalink
Remove some dead order admin javascript
Browse files Browse the repository at this point in the history
The element referred to was removed in 72e5d47

Fixes spree#3872
  • Loading branch information
jhawthorn authored and radar committed Oct 21, 2013
1 parent ae23991 commit f909ba8
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions backend/app/assets/javascripts/admin/orders/edit.js
Original file line number Diff line number Diff line change
@@ -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();
});
});

0 comments on commit f909ba8

Please sign in to comment.