Remove ajax change price event

This commit is contained in:
Michael RICOIS 2017-07-17 12:32:27 +02:00
parent 987735a01f
commit e22830139f
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,20 @@
$(function(){
$('.configurator-opt-datepicker').datepicker({dateFormat: "dd MM yy"});
$('.configurator-opt-file').fileupload({
dataType: 'json',
done: function (e, data) {
$.each(data.result.files, function (index, file) {
// Set hidden field
$('input[name='+$(e.target).data('field')+']').val(file.name);
// Set Response
$('span#response-'+$(e.target).data('field')).text(file.name).trigger('change');
$(e.target).parent().find('span.filename').text('');
});
},
progressall: function (e, data) {
$('span#response-'+$(e.target).data('field')).text("Envoi en cours...");
var progress = parseInt(data.loaded / data.total * 100, 10);
}
}).prop('disabled', !$.support.fileInput).parent().addClass($.support.fileInput ? undefined : 'disabled');
});

View File

@ -22,7 +22,11 @@
<span class="marquage"><strong>{$group['name']} : </strong>
{foreach item=i from=$group['value'] name=opt}
{if $group['type'] == 'file'}
<a href="{$base_dir}upload/{$product.id_product}/{$group['reference']}/{$i}">{$i}</a>
{if isset($force_ssl) && $force_ssl}
<a href="{$base_dir_ssl}upload/{$product.id_product}/{$group['reference']}/{$i}">{$i}</a>
{else}
<a href="{$base_dir}upload/{$product.id_product}/{$group['reference']}/{$i}">{$i}</a>
{/if}
{else}
{$i}{if !$smarty.foreach.opt.last},{/if}
{/if}
@ -62,7 +66,7 @@
<p>{l s="Pour toute question ou information complémentaire, prenez contact avec notre support client :"}</p>
</div>
<div class="buttons-action">
<a href="" class="btn btn-greydark back-to-products">{l s="Retour au catalogue"}</a>
<a href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" class="btn btn-greydark back-to-products">{l s="Retour au catalogue"}</a>
<a href="" class="btn contact-us">{l s="Contact"}</a>
</div>
</div>