// Fix new combination form submit

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12425 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-16 10:48:51 +00:00
parent d452c4dbf8
commit 1969ddb38c
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();
});
});