|
|
|
@ -7,7 +7,14 @@ $('ul.nav.nav-pills > li').each( |
|
|
|
var _sameSection = $('li[data-section*="'+$(this).data('section')+'"]'); |
|
|
|
if(_sameSection.length > 1 && !_sameSection.hasClass('dropdown')){ |
|
|
|
_sameSection.first().addClass('dropdown') |
|
|
|
.find('a:first') |
|
|
|
.find('a:first').addClass('dropdown-toggle') |
|
|
|
.attr({ |
|
|
|
'data-hover':'dropdown', |
|
|
|
'data-toggle':'dropdown', |
|
|
|
'data-hover':'dropdown', |
|
|
|
'data-delay':'500', |
|
|
|
'data-close-others':'false', |
|
|
|
}) |
|
|
|
.append('<span class="caret"></span>'); |
|
|
|
|
|
|
|
_sameSection.first().append(_sameSection.not(':first')); |
|
|
|
@ -17,5 +24,7 @@ $('ul.nav.nav-pills > li').each( |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
$('[data-hover="dropdown"]').dropdownHover(); |
|
|
|
|
|
|
|
|
|
|
|
}); |