Fix on initial loading

This commit is contained in:
Ludovic CANDELLIER
2020-06-07 23:24:35 +02:00
parent 066744e082
commit 2eab3cd689

View File

@@ -13,6 +13,7 @@
// handle_append_attribute();
$('.select2').select2();
handle_change_attribute();
load_attribute_values($('.attributes-value'), $('.attributes-family').val());
}
$("#append_price").appender({
@@ -52,9 +53,7 @@
var family_id = $(this).val();
var $family = $(this);
var $parent = $family.parent().parent();
// console.log($parent);
var $selector = $parent.find('.attributes-value');
// console.log($selector);
load_attribute_values($selector, family_id);
});
}