diff --git a/www/themes/versionecologique/js/modules/antadisconfigurator/views/js/configurator.js b/www/themes/versionecologique/js/modules/antadisconfigurator/views/js/configurator.js new file mode 100644 index 0000000..59c846d --- /dev/null +++ b/www/themes/versionecologique/js/modules/antadisconfigurator/views/js/configurator.js @@ -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'); +}); \ No newline at end of file diff --git a/www/themes/versionecologique/shopping-cart.tpl b/www/themes/versionecologique/shopping-cart.tpl index e7243fe..3a9054f 100644 --- a/www/themes/versionecologique/shopping-cart.tpl +++ b/www/themes/versionecologique/shopping-cart.tpl @@ -22,7 +22,11 @@ {$group['name']} : {foreach item=i from=$group['value'] name=opt} {if $group['type'] == 'file'} - {$i} + {if isset($force_ssl) && $force_ssl} + {$i} + {else} + {$i} + {/if} {else} {$i}{if !$smarty.foreach.opt.last},{/if} {/if} @@ -62,7 +66,7 @@

{l s="Pour toute question ou information complémentaire, prenez contact avec notre support client :"}

- {l s="Retour au catalogue"} + {l s="Retour au catalogue"} {l s="Contact"}