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

Display current active tab

parent 1a6716c6
...@@ -162,11 +162,19 @@ ...@@ -162,11 +162,19 @@
})\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
if (view_list[i].name === options.view) {\n
nav_html += active_navigation_template({\n
title: view_list[i].title,\n
link: all_result[i],\n
});\n
} else {\n
nav_html += navigation_template({\n nav_html += navigation_template({\n
title: view_list[i].title,\n title: view_list[i].title,\n
link: all_result[i],\n link: all_result[i],\n
});\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
\n \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