forked from spree/spree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some dead order admin javascript
The element referred to was removed in 72e5d47 Fixes spree#3872
- Loading branch information
Showing
1 changed file
with
1 addition
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |