mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
fixed addSidebarToggler where index and section were flip-flopped
This commit is contained in:
parent
9364f37ac7
commit
75cc24c8d6
@ -28,7 +28,7 @@ function addSidebarToggler() {
|
|||||||
}
|
}
|
||||||
var sections = $('aside.sidebar > section');
|
var sections = $('aside.sidebar > section');
|
||||||
if (sections.length > 1) {
|
if (sections.length > 1) {
|
||||||
sections.each(function(section, index){
|
sections.each(function(index, section){
|
||||||
if ((sections.length >= 3) && index % 3 === 0) {
|
if ((sections.length >= 3) && index % 3 === 0) {
|
||||||
$(section).addClass("first");
|
$(section).addClass("first");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user