// Fix new combination form submit

This commit is contained in:
tDidierjean
2012-01-16 10:48:51 +00:00
parent 4c525f7f6f
commit 767591a436
2 changed files with 16 additions and 10 deletions
+6 -1
View File
@@ -369,5 +369,10 @@ function openCloseLayer(whichLayer)
}
$(document).ready(function(){
$('#product_form').submit(function(){attr_selectall();console.log('couou');});
$('#product_form').submit(function(){
attr_selectall();
// If the new combination form is hidden, remove it so that empty fields are not submitted
if ($('#add_new_combination').is(':hidden'))
$('#add_new_combination').remove();
});
});