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 )

12465 put(a) pogledan, 4 odgovor(a) 15.4.2014. 11:50:38Kreirao(la) panos.pag
panos-pag

panos.pag

15.4.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
Ovaj sadržaj još nije ocijenjen. 
390 Reputacija 35 Ukupno objava
ivanb

ivanb

15.4.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
Ovaj sadržaj još nije ocijenjen. 
459 Reputacija 55 Ukupno objava
panos-pag

panos.pag

16.4.2014. 8: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 

Ovaj sadržaj još nije ocijenjen. 
390 Reputacija 35 Ukupno objava
ivanb

ivanb

16.4.2014. 9: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
Ovaj sadržaj još nije ocijenjen. 
459 Reputacija 55 Ukupno objava