Merge branch 'fix-AideContact' into develop
This commit is contained in:
commit
94cbb73027
@ -21,6 +21,15 @@
|
||||
<p class="bold">{l s='For questions about an order or for more information about our products' mod='ant_support_form'}.</p>
|
||||
<fieldset>
|
||||
<div class="content">
|
||||
<p class="select">
|
||||
<label for="select_contact">{l s='Subject Heading' mod='ant_support_form'}</label>
|
||||
<select id="select_contact" name="select_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')">
|
||||
<option value="0">{l s='-- Choose --' mod='ant_support_form'}</option>
|
||||
{foreach from=$contacts item=contact}
|
||||
<option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</p>
|
||||
<p class="text">
|
||||
<label for="email">{l s='E-mail address' mod='ant_support_form'}</label>
|
||||
{if isset($customerThread.email)}
|
||||
@ -186,6 +195,13 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#select_contact').change(function() {
|
||||
if($("option:selected", $('#select_contact')).val() == 9 || $("option:selected", $('#select_contact')).val() == 1){
|
||||
window.location = "{/literal}{$base_dir_ssl}{literal}modules/ant_support_form/support.php?id_contact="+$("option:selected", $('#select_contact')).val();
|
||||
}else{
|
||||
window.location = "{/literal}{$base_dir_ssl}{literal}contact-form.php?id_contact="+$("option:selected", $('#select_contact')).val();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
@ -125,6 +125,38 @@
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div class="overlay_bbb" style="display: none;"></div>
|
||||
<div class="box_add_to_cart box_waiting" style="display: none;">
|
||||
<div class="content">
|
||||
<p style="text-align: center;">
|
||||
<img style="width:100%;" src="{if isset($site_version) && $site_version == 'es'}/img/logo_3.png{else}/img/logo_2.png{/if}" alt="">
|
||||
<br />
|
||||
<span>{l s='Redirection vers le formulaire, veuillez patienter'}</span>
|
||||
<br />
|
||||
<img src="img/loader_payment.gif" alt="">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
if($("option:selected", $('#id_contact')).val() == 9 || $("option:selected", $('#id_contact')).val() == 1){
|
||||
$('.overlay_bbb').fadeIn();
|
||||
$('.box_waiting').fadeIn();
|
||||
window.location = "{/literal}{$base_dir_ssl}{literal}modules/ant_support_form/support.php?id_contact="+$("option:selected", $('#id_contact')).val();
|
||||
}
|
||||
$('#id_contact').change(function() {
|
||||
if($("option:selected", $('#id_contact')).val() == 9 || $("option:selected", $('#id_contact')).val() == 1){
|
||||
$('.overlay_bbb').fadeIn();
|
||||
$('.box_waiting').fadeIn();
|
||||
window.location = "{/literal}{$base_dir_ssl}{literal}modules/ant_support_form/support.php?id_contact="+$("option:selected", $('#id_contact')).val();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<script type="text/javascript">{literal}
|
||||
<!--
|
||||
jQuery(function () {
|
||||
|
@ -5061,6 +5061,7 @@ body#product #best-sellers_block_product{
|
||||
}
|
||||
#module-ant_support_form-support #center_column p input[type="checkbox"]{
|
||||
float: left;
|
||||
margin-top: 25px;
|
||||
}
|
||||
#module-ant_support_form-support #center_column p.submit .button_large {
|
||||
margin-top:20px;
|
||||
|
Loading…
Reference in New Issue
Block a user