Control: remove noisy console.log from variations.js

This commit is contained in:
Richard Schreiber
2025-09-19 10:25:13 +02:00
parent 31b2841c4f
commit dd441c09f7

View File

@@ -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)});