// small corrections
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11303 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -97,7 +97,9 @@
|
|||||||
// Reset settings
|
// Reset settings
|
||||||
$('li.tab-row a[id*="Pack"]').hide();
|
$('li.tab-row a[id*="Pack"]').hide();
|
||||||
$('li.tab-row a[id*="VirtualProduct"]').hide();
|
$('li.tab-row a[id*="VirtualProduct"]').hide();
|
||||||
|
$('div.ppack').hide();
|
||||||
$('#is_virtual_good').removeAttr('checked');
|
$('#is_virtual_good').removeAttr('checked');
|
||||||
|
$('div.is_virtual_good').hide();
|
||||||
$('#is_virtual').val(0);
|
$('#is_virtual').val(0);
|
||||||
|
|
||||||
var val = $(this).val();
|
var val = $(this).val();
|
||||||
|
|||||||
@@ -165,8 +165,10 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" name="ppack" id="ppack" value="1" {if $is_pack}checked="checked"{/if} onclick="$('#ppackdiv').slideToggle();" />
|
<div class="ppack">
|
||||||
<label class="t" for="ppack">{l s='Pack'}</label>
|
<input type="checkbox" name="ppack" id="ppack" value="1" {if $is_pack}checked="checked"{/if} onclick="$('#ppackdiv').slideToggle();" />
|
||||||
|
<label class="t" for="ppack">{l s='Pack'}</label>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div id="ppackdiv" {if !$is_pack}style="display: none;"{/if}>
|
<div id="ppackdiv" {if !$is_pack}style="display: none;"{/if}>
|
||||||
|
|||||||
@@ -69,13 +69,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*$('input[name=is_virtual_good]').live('change', function() {
|
|
||||||
if($(this).attr('checked'))
|
|
||||||
$('#is_virtual').val(1);
|
|
||||||
else
|
|
||||||
$('#is_virtual').val(0);
|
|
||||||
});*/
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('input').keypress(function(e) {
|
$('input').keypress(function(e) {
|
||||||
var code = null;
|
var code = null;
|
||||||
@@ -159,9 +152,10 @@
|
|||||||
<table cellpadding="5" cellspacing="0" border="0" style="width: 100%;">
|
<table cellpadding="5" cellspacing="0" border="0" style="width: 100%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<p><input type="checkbox" id="is_virtual_good" name="is_virtual_good" value="true" {*onclick="toggleVirtualProduct(this);"*} {if $product->is_virtual && $product->productDownload->active}checked="checked"{/if} />
|
<div class="is_virtual_good">
|
||||||
|
<input type="checkbox" id="is_virtual_good" name="is_virtual_good" value="true" {*onclick="toggleVirtualProduct(this);"*} {if $product->is_virtual && $product->productDownload->active}checked="checked"{/if} />
|
||||||
<label for="is_virtual_good" class="t bold">{l s='Is this a virtual product?'}</label>
|
<label for="is_virtual_good" class="t bold">{l s='Is this a virtual product?'}</label>
|
||||||
</p>
|
</div>
|
||||||
{* [begin] virtual product *}
|
{* [begin] virtual product *}
|
||||||
<div id="virtual_good" class="toggleVirtualPhysicalProduct" {if !$product->productDownload->id || $product->productDownload->active}style="display:none"{/if} >
|
<div id="virtual_good" class="toggleVirtualPhysicalProduct" {if !$product->productDownload->id || $product->productDownload->active}style="display:none"{/if} >
|
||||||
<input type="hidden" id="is_virtual" name="is_virtual" value="{$product->is_virtual}" />
|
<input type="hidden" id="is_virtual" name="is_virtual" value="{$product->is_virtual}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user