// bug fix when trying to add files to combinations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10200 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -121,9 +121,8 @@
|
|||||||
<div id="upload-confirmation2">
|
<div id="upload-confirmation2">
|
||||||
|
|
||||||
<p id="gethtmlink" style="display: none;">{l s='This is the link'} : {$product->productDownload->getHtmlLink(false, true)}
|
<p id="gethtmlink" style="display: none;">{l s='This is the link'} : {$product->productDownload->getHtmlLink(false, true)}
|
||||||
<a id="make_downloadable_product_attribute" onclick="return confirm('.addslashes("{l s='Delete this file' slashes=1}")).')" href="index.php?tab=AdminProducts&id_product={$product->productDownload->id_product}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a></p>
|
<a id="make_downloadable_product_attribute" onclick="return confirm('.addslashes("{l s='Delete this file' slashes=1}")).')" href="index.php?tab=AdminProducts&id_product={$product->productDownload->id_product}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
|
||||||
|
</p>
|
||||||
<a
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<a id="delete_downloadable_product_attribute" style="display:none;" onclick="return confirm('{l s='Delete this file' slashes=1}')" href="index.php?tab=AdminProducts&id_product={$product->id}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
|
<a id="delete_downloadable_product_attribute" style="display:none;" onclick="return confirm('{l s='Delete this file' slashes=1}')" href="index.php?tab=AdminProducts&id_product={$product->id}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
|
||||||
|
|||||||
@@ -212,10 +212,10 @@ $(document).ready(function(){
|
|||||||
$('#virtual_product_file_label').hide();
|
$('#virtual_product_file_label').hide();
|
||||||
$('#file_missing').hide();
|
$('#file_missing').hide();
|
||||||
$('#delete_downloadable_product_attribute').show();
|
$('#delete_downloadable_product_attribute').show();
|
||||||
$('#virtual_product_name_attribute').attr('value', fileName);
|
|
||||||
$('#upload-confirmation2').html(
|
$('#upload-confirmation2').html(
|
||||||
'<a class="link" href="get-file-admin.php?file='+msg+'&filename='+fileName+'">{l s='The file'} "' + fileName + '" {l s='has successfully been uploaded'}</a>' +
|
'<a class="link" href="get-file-admin.php?file='+msg+'&filename='+fileName+'">{l s='The file'} "' + fileName + '" {l s='has successfully been uploaded'}</a>' +
|
||||||
'<input type="hidden" id="virtual_product_filename_attribute" name="virtual_product_filename_attribute" value="' + msg + '" />');
|
'<input type="hidden" id="virtual_product_filename_attribute" name="virtual_product_filename_attribute" value="' + msg + '" />');
|
||||||
|
$('#virtual_product_name_attribute').attr('value', fileName);
|
||||||
|
|
||||||
link = $("#delete_downloadable_product_attribute").attr('href');
|
link = $("#delete_downloadable_product_attribute").attr('href');
|
||||||
$("#delete_downloadable_product_attribute").attr('href', link+"&file="+msg);
|
$("#delete_downloadable_product_attribute").attr('href', link+"&file="+msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user