small fixes on frontoffice

This commit is contained in:
Julien Chanséaume
2014-07-25 17:07:58 +02:00
committed by Julien Chanseaume
parent e76ad60342
commit bd5dd4a172
5 changed files with 13 additions and 9 deletions

View File

@@ -57,8 +57,13 @@ var pseManager = (function($){
// get the select for options
$("#pse-options .pse-option").each(function(){
var $option = $(this);
$pse['options'][$option.data("attribute")] = $option;
$option.on("change", updateProductForm);
if ( $option.data("attribute") in PSE_COMBINATIONS){
$pse['options'][$option.data("attribute")] = $option;
$option.on("change", updateProductForm);
} else {
// not affected to this product -> remove
$option.closest(".option").remove();
}
});
// build select