// Virtual Product bootsraping

This commit is contained in:
Jerome Nadaud
2013-12-10 13:51:34 +01:00
parent d511828a91
commit 992dddcbb4
2 changed files with 159 additions and 172 deletions
+1 -14
View File
@@ -1332,33 +1332,20 @@ product_tabs['VirtualProduct'] = new function(){
if ($('#is_virtual_good').prop('checked'))
{
$('#virtual_good').show();
$('#virtual_good_more').show();
}
$('.is_virtual_good').hide();
if ( $('input[name=is_virtual_file]:checked').val() == 1)
{
$('#virtual_good_more').show();
$('#is_virtual_file_product').show();
}
else
{
$('#virtual_good_more').hide();
$('#is_virtual_file_product').hide();
}
$('input[name=is_virtual_file]').live('change', function(e) {
if($(this).val() == '1')
{
$('#virtual_good_more').show();
if($(this).prop('checked'))
$('#is_virtual_file_product').show();
}
else
{
$('#virtual_good_more').hide();
$('#is_virtual_file_product').hide();
}
});
// Bind file deletion