// Bug fix when deleting a file associated to a virtual product

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10210 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lBrieu
2011-11-17 13:25:14 +00:00
parent 284c892d4d
commit f182a82ee9
@@ -472,14 +472,14 @@ $(document).ready(function(){
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="{$up_filename}" />
{/if}
</div>
<a id="delete_downloadable_product" style="display:none;" onclick="return confirm('{l s='Delete this file' slashes=1 js=1}')" href="{$currentIndex}&deleteVirtualProduct=true&token={$token}" class="red">
<a id="delete_downloadable_product" style="display:none;" onclick="return confirm('{l s='Delete this file' slashes=1 js=1}')" href="{$currentIndex}&deleteVirtualProduct=true&token={$token}&id_product={$product->id}" class="red">
{l s='Delete this file'}
</a>
</div>
{else}
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="{$product->productDownload->filename}" />
{l s='This is the link'}:&nbsp;{$product->productDownload->getHtmlLink(false, true)}
<a onclick="return confirm('{l s='Delete this file' slashes=1 js=1})')" href="{$currentIndex}&deleteVirtualProduct=true&token={$token}" class="red">{l s='Delete this file'}</a>
<a onclick="return confirm('{l s='Delete this file' slashes=1 js=1})')" href="{$currentIndex}&deleteVirtualProduct=true&token={$token}&id_product={$product->id}" class="red">{l s='Delete this file'}</a>
{/if}
</p>