From 86ba8c62b68052bbeb5014dbeb7ea87cbdf5b754 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Thu, 16 Feb 2012 15:27:55 +0000 Subject: [PATCH] [-] BO : fix bug #PSTEST-786 - virtual products block does not show --- .../controllers/products/virtualproduct.tpl | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl b/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl index f78b6b3c2..8c21f0db0 100644 --- a/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl +++ b/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl @@ -40,29 +40,16 @@ nextText: '', dateFormat: 'yy-mm-dd' }); - }); - if ($('#is_virtual_good').attr('checked')) - { - $('#virtual_good').show(); - $('#virtual_good_more').show(); - } + if ($('#is_virtual_good').attr('checked')) + { + $('#virtual_good').show(); + $('#virtual_good_more').show(); + } - $('.is_virtual_good').hide(); + $('.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() { - if($(this).val() == '1') + if ( $('input[name=is_virtual_file]:checked').val() == 1) { $('#virtual_good_more').show(); $('#is_virtual_file_product').show(); @@ -72,6 +59,19 @@ $('#virtual_good_more').hide(); $('#is_virtual_file_product').hide(); } + + $('input[name=is_virtual_file]').live('change', function() { + if($(this).val() == '1') + { + $('#virtual_good_more').show(); + $('#is_virtual_file_product').show(); + } + else + { + $('#virtual_good_more').hide(); + $('#is_virtual_file_product').hide(); + } + }); }); function uploadFile()