mirror of
https://github.com/pretix/pretix.git
synced 2026-03-09 13:32:27 +00:00
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("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", !(
|
||||
(
|
||||
$(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) {
|
||||
console.log("added", event.target)
|
||||
var $el = $(event.target);
|
||||
update_variation_summary($el);
|
||||
$(this).on("change dp.change", "input", function () {update_variation_summary($el)});
|
||||
|
||||
Reference in New Issue
Block a user