• Erick Akyo
    May 14, 2014 at 12:43 am #36464

    Hi!
    Can I set up the Advanced Search minimized by default in homepage?
    http://i62.tinypic.com/1epi1c.png like this

    Anna
    May 16, 2014 at 6:34 am #37164

    Hi Erick,

    This is a development question. It requires JS modifications and you should be skilled to make the change yourself.

    Someone from the technical team will post some directions, but it can take a few more days to have the answer.

    Sorry for the delay.

    Anna

    crerem
    May 16, 2014 at 9:03 am #37208

    there are several things that need to be done (you need to be fluent in html and javascript)

    1. search_wrapper – in map-search-form.php : add style=”top: 112px;” or whatever value you need for correct positioning

    2.<div id=”adv-search-header-2″ >Advanced Search</div> – add class=”adv2_close” (in advanced-search-2.php)

    3.<div class=”adv-search-2 ” id=”adv-search-2″> – add style=”display: none;” (in advanced-search-2.php)

    4. modify the control.js in order to make the new behavior (and only if necessary)
    start from $(‘#adv-search-header-2’).click(function(){ at line 1298

    Steven McSorley
    July 21, 2014 at 5:46 pm #49473

    (hides the advanced_search-2 form by default)

    Note: don’t use css display none or jquery hide().

    In control.js

    on line 5 change: var adv_search2=1;

    to

    var adv_search2=0;

    Above and before the line : $('#adv-search-header-2').click(function(){

    Add this:

    adv-search-2').fadeOut(50,function(){
                    $('#search_wrapper').animate({
                        top:112+"px"
                        },200);                      
                 }); 

    The css positioning is up to you

    Anna
    July 25, 2014 at 8:20 am #51229

    Hi Steven,

    Thank you very much for the follow up!

    Anna

    Claudio
    October 24, 2014 at 10:05 am #100214

    Uhhuuuu thank you very much.

    just a detail, the correct code is:

    $(‘#adv-search-2’).fadeOut(50,function(){
    $(‘#search_wrapper’).animate({
    top:112+”px”
    },200);
    });

    ayalamac
    November 19, 2014 at 3:49 pm #100787

    I make these exact changes in control.js and nothing happens. Why could be wrong?

    http://www.monroyrep.com/our-properties

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.