This commit is contained in:
Hoang Huu 2019-09-13 15:22:59 +07:00
parent 5bcd3b22c3
commit 9a9ef4867a
2 changed files with 10 additions and 11 deletions

View File

@ -300,15 +300,14 @@ jQuery( document ).ready( function ( $ ) {
/** /**
* Click to show body popup * Click to show body popup
*/ */
$( 'body' ).delegate( '.opalestate-popup .popup-head', 'click', function () { $( '.popup-head' ).on( 'click', function ( e ) {
var $this = $( this ).parent( '.opalestate-popup' ); var $popup = $( this ).closest( '.opalestate-popup' );
$( '.popup-head', $this ).click( function () { $popup.toggleClass( 'active' );
$( '.opalestate-popup.active' ).removeClass( 'active' ); } );
$this.toggleClass( 'active' );
} ); $( '.popup-close' ).on( 'click', function ( e ) {
$( '.popup-close', $this ).click( function () { var $popup = $( this ).closest( '.opalestate-popup' );
$( '.opalestate-popup' ).removeClass( 'active' ); $popup.removeClass( 'active' );
} );
} ); } );
/** /**

View File

@ -36,10 +36,10 @@ $data_deposit = [
<div class="popup-body"> <div class="popup-body">
<div class="popup-close"><i class="fa fa-times" aria-hidden="true"></i></div> <div class="popup-close"><i class="fa fa-times" aria-hidden="true"></i></div>
<div class="contact-share-form-container"> <div class="contact-share-form-container">
<h6><?php echo esc_html__( 'Show with in.', 'opalestate-pro' ); ?></h6> <h6><?php esc_html_e( 'Show with in', 'opalestate-pro' ); ?></h6>
<div class="box-content "> <div class="box-content ">
<?php opalesate_property_slide_ranger_template( esc_html__( 'Radius', 'opalestate-pro' ), $data_deposit ); ?> <?php opalesate_property_slide_ranger_template( esc_html__( 'Radius', 'opalestate-pro' ), $data_deposit ); ?>
<p><a href="#"><?php echo esc_html__( 'Of My Location', 'opalestate-pro' ); ?></a></p> <p><?php esc_html_e( 'Of My Location', 'opalestate-pro' ); ?></p>
</div> </div>
</div> </div>
</div> </div>