forked from CGM_Public/pretix_original
Control: remove noisy console.log from variations.js
This commit is contained in:
@@ -46,17 +46,6 @@ $(function () {
|
|||||||
$el.find(".alert-danger, .has-error").length
|
$el.find(".alert-danger, .has-error").length
|
||||||
));
|
));
|
||||||
$el.find("input[name$=-limit_sales_channels]").each(function () {
|
$el.find("input[name$=-limit_sales_channels]").each(function () {
|
||||||
console.log(
|
|
||||||
$(this).val(),
|
|
||||||
$el.find(".variation-channel-" + $(this).val()),
|
|
||||||
(
|
|
||||||
$(this).closest("[data-formset-form]").find("input[name$=-all_sales_channels]").prop("checked") ||
|
|
||||||
$(this).prop("checked")
|
|
||||||
), (
|
|
||||||
$("input[name=all_sales_channels]").prop("checked") ||
|
|
||||||
$("input[name=limit_sales_channels][value=" + $(this).val() + "]").prop("checked")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
$el.find(".variation-channel-" + $(this).val()).toggleClass("variation-icon-hidden", !(
|
$el.find(".variation-channel-" + $(this).val()).toggleClass("variation-icon-hidden", !(
|
||||||
(
|
(
|
||||||
$(this).closest("[data-formset-form]").find("input[name$=-all_sales_channels]").prop("checked") ||
|
$(this).closest("[data-formset-form]").find("input[name$=-all_sales_channels]").prop("checked") ||
|
||||||
@@ -80,7 +69,6 @@ $(function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("#item_variations").on("formAdded", "details", function (event) {
|
$("#item_variations").on("formAdded", "details", function (event) {
|
||||||
console.log("added", event.target)
|
|
||||||
var $el = $(event.target);
|
var $el = $(event.target);
|
||||||
update_variation_summary($el);
|
update_variation_summary($el);
|
||||||
$(this).on("change dp.change", "input", function () {update_variation_summary($el)});
|
$(this).on("change dp.change", "input", function () {update_variation_summary($el)});
|
||||||
|
|||||||
Reference in New Issue
Block a user