Re: Menu and bug/probem

Home Forums Older releases 0.9.x Menu and bug/probem Re: Menu and bug/probem

#1725
admin
Keymaster

Hi,
You will need to tweak the showTimeout option which defaults to 250ms. To do so, in the “jquery.smartmenus.bootstrap.js” file you will see the following code:

	$this.addClass('sm').smartmenus({

						// these are some good default options that should work for all
						// you can, of course, tweak these as you like
						subMenusSubOffsetX: 2,
						subMenusSubOffsetY: -6,
						subIndicatorsPos: 'append',
						subIndicatorsText: '...',
						collapsibleShowFunction: null,
						collapsibleHideFunction: null,
						rightToLeftSubMenus: $this.hasClass('navbar-right'),
						bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom')
		})

You just need to add the option with some desired value (50ms in this example) like this:

	$this.addClass('sm').smartmenus({
						showTimeout: 50,
						// these are some good default options that should work for all
						// you can, of course, tweak these as you like
						subMenusSubOffsetX: 2,
						subMenusSubOffsetY: -6,
						subIndicatorsPos: 'append',
						subIndicatorsText: '...',
						collapsibleShowFunction: null,
						collapsibleHideFunction: null,
						rightToLeftSubMenus: $this.hasClass('navbar-right'),
						bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom')
		})

Cheers!

Register

You will be emailed a link to set your password.

Login

Lost password?