Commit b8607c3a authored by Romain Courteaud's avatar Romain Courteaud Committed by Sebastien Robin

Display current active tab

parent 1a6716c6
...@@ -162,10 +162,18 @@ ...@@ -162,10 +162,18 @@
})\n })\n
.push(function (all_result) {\n .push(function (all_result) {\n
for (i = 0; i < all_result.length; i += 1) {\n for (i = 0; i < all_result.length; i += 1) {\n
nav_html += navigation_template({\n if (view_list[i].name === options.view) {\n
title: view_list[i].title,\n nav_html += active_navigation_template({\n
link: all_result[i],\n title: view_list[i].title,\n
});\n link: all_result[i],\n
});\n
} else {\n
nav_html += navigation_template({\n
title: view_list[i].title,\n
link: all_result[i],\n
});\n
}\n
\n
}\n }\n
nav_html += \'</ul></nav>\';\n nav_html += \'</ul></nav>\';\n
nav_element.innerHTML = nav_html;\n nav_element.innerHTML = nav_html;\n
......
3 4
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment