// Fix new combination form submit

This commit is contained in:
tDidierjean committed 2012-01-16 10:48:51 +00:00
1 parent d244e3cd5e
commit d81ca8027a
2 files changed
+16 -10

No files matched your search

+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();
});
});