// 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:
@@ -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'}: {$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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user