forked from CGM_Public/pretix_original
committed by
GitHub
parent
6304b34600
commit
c71ba79e55
@@ -1,4 +1,4 @@
|
||||
/*global $, Morris, gettext*/
|
||||
/*global $, Morris, gettext, formatPrice*/
|
||||
$(function () {
|
||||
// Question view
|
||||
if (!$("#item_variations").length) {
|
||||
@@ -8,7 +8,10 @@ $(function () {
|
||||
function update_variation_summary($el) {
|
||||
var var_name = $el.find("input[name*=-value_]").filter(function () {return !!this.value}).first().val();
|
||||
var price = $el.find("input[name*=-default_price]").val();
|
||||
|
||||
if (price) {
|
||||
var currency = $el.find("[name*=-default_price] + .input-group-addon").text();
|
||||
price = formatPrice(price, currency);
|
||||
}
|
||||
|
||||
$el.find(".variation-name").text(var_name);
|
||||
$el.find(".variation-price").text(price);
|
||||
|
||||
Reference in New Issue
Block a user