MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

MonoXMenuHTML5.ascx dropdown animation  (Mono Support )

Viewed 12552 time(s), 4 post(s) 15.04.2014 11:50:38by panos.pag
panos-pag

panos.pag

15.04.2014 11:50:38
Hello,

Could you tell me how to de-activate the drop doawn animation effect for the level0 childs of the monoX menu?

Thanks!

Panos
Dieser Inhalt wurde noch nicht bewertet. 
390 Reputation 35 Total posts
ivanb

ivanb

15.04.2014 13:04:42
Hi Panos.Pag,
all animations in navigation are handled by javascript. Here you can find original script and it's options, and probably you can find your solution there.

Best regards,
Ivan
Dieser Inhalt wurde noch nicht bewertet. 
459 Reputation 55 Total posts
panos-pag

panos.pag

16.04.2014 08:27:11
Thank you for your reply!

I found this js code in MonoXMenuHTML5.ascx:

$(document).ready(function () {
            InitResponsiveNav();
            if ( typeof(Sys) !== "undefined"  ) {
                var prm = Sys.WebForms.PageRequestManager.getInstance();
                if (prm != null) {
                    prm.add_endRequest(function (s, e) {
                        InitResponsiveNav();   
                        $(window).trigger("resize"); //Reinit
                    });
                }
            }
        });

    function InitResponsiveNav() {        
        //$('#<%= this.ClientID %>').responsinav({ breakpoint: <%= ResponsiveDesignBrakeWidth %> });
}

function InitResponsiveNav() {       
        $('#<%= this.ClientID %>').responsinav({ breakpoint: <%= ResponsiveDesignBrakeWidth %> });
}
But I cannot figure out how to disable it, since "commenting" it makes ths drop down not to function at all.

thank you,
Panos 

Dieser Inhalt wurde noch nicht bewertet. 
390 Reputation 35 Total posts
ivanb

ivanb

16.04.2014 09:01:54
Hi Panos.Pag,
in jquery.responsivenav.js  find part of code beneath "// Behavior " and set number '300' to '0' in all 3 places, and that should solve your problem.

Regards,
Ivan
Dieser Inhalt wurde noch nicht bewertet. 
459 Reputation 55 Total posts