Commit df08d75a authored by imac's avatar imac

[Bugfix]JIRA : Nap-39 -> open icon bloc && Nap-38 -> Click on show commercial

parent 922b2dda
......@@ -68,10 +68,18 @@ function selectZone(zone, initialClassDep, initialClassNum) {
window.selectedZone = zone;
}
function showMap(){
jQuery(document).find('.show-filter').on('click', function(){
jQuery(document).find('.filter-wrapper .header-filter-contact .open-filter').on('click', function(){
var toggleButton = $(this).parent().find('h2');
toggleButton.toggleClass('on');
$('.filter').appendMap();
$('.filter, .details, .active-com, .map').slideToggle();
$(this).toggleClass('on');
if (toggleButton.hasClass('on')){
$('.filter, .details, .active-com, .map').slideDown();
$('.map').fadeIn();
}else{
$('.filter, .details, .active-com').slideUp();
$('.map').fadeOut();
}
checkFilterContactWrapper();
})
}
jQuery("#map-search").bind('submit',function(e) {
......
......@@ -20,7 +20,10 @@ $post_ID = 157;
</div>
<div class="right-panel full-height right">
<div class="filter-wrapper search-filter fixed full-height form-wrapper border-l row">
<div class="header-filter-contact">
<h2>Trouver mon contact commercial</h2>
<span class="open-filter abs-full display--only-mobile"></span>
</div>
<div class="filter">
<form id="map-search" method="get" action='contact.php'>
<p class="form-element">
......@@ -97,7 +100,10 @@ $post_ID = 157;
</div>
<div class="contact-form right border-l row gray-bg">
<div class="form-wrapper inner-form">
<div class="header-filter-contact">
<h2 class="on">Je souhaite être <br> contacté</h2>
<span class="open-filter abs-full display--only-mobile"></span>
</div>
<!--<form method="POST">
<div class="clearfix">
<div class="row left half-col">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment