diff --git a/assets/.DS_Store b/assets/.DS_Store index 9958ec9a..5aa263be 100755 Binary files a/assets/.DS_Store and b/assets/.DS_Store differ diff --git a/assets/js/opalestate.js b/assets/js/opalestate.js index d2abbd1f..2f0d54b5 100755 --- a/assets/js/opalestate.js +++ b/assets/js/opalestate.js @@ -465,11 +465,7 @@ jQuery( document ).ready( function ( $ ) { if ( $( '.opalestate-datepicker' ).length > 0 ) { $( '.opalestate-datepicker' ).datepicker( { minDate: 0 } ); } - // - /** - * - */ $( '.list-property-status li' ).click( function () { $( '.opalestate-search-form [name=status]' ).val( $( this ).data( 'id' ) ); $( '.list-property-status li' ).removeClass( 'active' ); @@ -496,10 +492,15 @@ jQuery( document ).ready( function ( $ ) { var slider = $( '.slide-ranger-bar', this ).get( 0 ); var unit_pos = $( this ).data( 'unitpos' ); var unit_thousand = $( this ).data( 'thousand' ); + var step = $( this ).data( 'step' ); + var format = $( this ).data( 'format' ); + step = step ? step : 1; + format = format ? format: 1; var config_format = { decimals: decimals, thousand: unit_thousand, + step: step, }; if ( unit_pos == 'prefix' ) { @@ -509,22 +510,28 @@ jQuery( document ).ready( function ( $ ) { } var nummm = wNumb( config_format ); + var istart = [ imin, imax ]; if ( mode && mode == 1 && start ) { istart = [ start ]; } - noUiSlider.create( slider, { + var options = { range: { 'min': [ min ], 'max': [ max ] }, - step: 0.1, + step: step, connect: true, start: istart, - format: nummm, direction: opalesateJS.rtl == 'true' ? 'rtl' : 'ltr', - } ); + }; + + if ( format ) { + options.format = nummm; + } + + noUiSlider.create( slider, options ); slider.noUiSlider.on( 'update', function ( values, handle ) { var val = values[ handle ]; diff --git a/assets/opalestate.css b/assets/opalestate.css index c0ffe8ab..1e685417 100755 --- a/assets/opalestate.css +++ b/assets/opalestate.css @@ -4010,6 +4010,10 @@ header#masthead { position: relative; } +.opalestate-box .type-opalestate_property:last-of-type { + margin-bottom: 0; +} + .opalestate-price-input-wrap { display: flex; align-items: center; diff --git a/assets/scss/opalestate/_properties-loop.scss b/assets/scss/opalestate/_properties-loop.scss index 2f0c010d..27e56978 100755 --- a/assets/scss/opalestate/_properties-loop.scss +++ b/assets/scss/opalestate/_properties-loop.scss @@ -677,3 +677,7 @@ header{ border: solid 1px #ebebeb; position: relative; } + +.opalestate-box .type-opalestate_property:last-of-type { + margin-bottom: 0; +} diff --git a/inc/function-search-fields.php b/inc/function-search-fields.php index fa8aa9b6..5bc15339 100755 --- a/inc/function-search-fields.php +++ b/inc/function-search-fields.php @@ -35,7 +35,7 @@ function opalestate_property_render_field_template( $field, $label, $type = 'sel