Commit ead9cd3b authored by Téo Vasseur's avatar Téo Vasseur

js : rename selectView() to viewSelector()

parent 08cba3c5
......@@ -32,7 +32,7 @@ function setView(view, parentId) {
document.getElementById(parentId).appendChild(view.node);
}
function selectView(view) {
function viewSelector(view) {
var f = function () {
$(".overlay").show();
selectedView = view;
......@@ -48,7 +48,7 @@ function setMenuOptions() {
div = document.createElement('div');
div.textContent = views[i].id;
// div.onclick = viewSetter(views[i], 'A');
div.onclick = selectView(views[i]);
div.onclick = viewSelector(views[i]);
menu.appendChild(div);
}
......
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