Fix on initial loading
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
// handle_append_attribute();
|
// handle_append_attribute();
|
||||||
$('.select2').select2();
|
$('.select2').select2();
|
||||||
handle_change_attribute();
|
handle_change_attribute();
|
||||||
|
load_attribute_values($('.attributes-value'), $('.attributes-family').val());
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#append_price").appender({
|
$("#append_price").appender({
|
||||||
@@ -52,9 +53,7 @@
|
|||||||
var family_id = $(this).val();
|
var family_id = $(this).val();
|
||||||
var $family = $(this);
|
var $family = $(this);
|
||||||
var $parent = $family.parent().parent();
|
var $parent = $family.parent().parent();
|
||||||
// console.log($parent);
|
|
||||||
var $selector = $parent.find('.attributes-value');
|
var $selector = $parent.find('.attributes-value');
|
||||||
// console.log($selector);
|
|
||||||
load_attribute_values($selector, family_id);
|
load_attribute_values($selector, family_id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user