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) { ...@@ -68,10 +68,18 @@ function selectZone(zone, initialClassDep, initialClassNum) {
window.selectedZone = zone; window.selectedZone = zone;
} }
function showMap(){ 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').appendMap();
$('.filter, .details, .active-com, .map').slideToggle(); if (toggleButton.hasClass('on')){
$(this).toggleClass('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) { jQuery("#map-search").bind('submit',function(e) {
......
...@@ -20,7 +20,10 @@ $post_ID = 157; ...@@ -20,7 +20,10 @@ $post_ID = 157;
</div> </div>
<div class="right-panel full-height right"> <div class="right-panel full-height right">
<div class="filter-wrapper search-filter fixed full-height form-wrapper border-l row"> <div class="filter-wrapper search-filter fixed full-height form-wrapper border-l row">
<h2>Trouver mon contact commercial</h2> <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"> <div class="filter">
<form id="map-search" method="get" action='contact.php'> <form id="map-search" method="get" action='contact.php'>
<p class="form-element"> <p class="form-element">
...@@ -97,7 +100,10 @@ $post_ID = 157; ...@@ -97,7 +100,10 @@ $post_ID = 157;
</div> </div>
<div class="contact-form right border-l row gray-bg"> <div class="contact-form right border-l row gray-bg">
<div class="form-wrapper inner-form"> <div class="form-wrapper inner-form">
<div class="header-filter-contact">
<h2 class="on">Je souhaite être <br> contacté</h2> <h2 class="on">Je souhaite être <br> contacté</h2>
<span class="open-filter abs-full display--only-mobile"></span>
</div>
<!--<form method="POST"> <!--<form method="POST">
<div class="clearfix"> <div class="clearfix">
<div class="row left half-col"> <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