Commit dd7a1b04 authored by MrMan's avatar MrMan

Add navigation on-click handler

parent eb18593b
......@@ -179,7 +179,13 @@ var NavItem = {
]));
}
return m("li.clickable", {class: classes.join(" ")}, children);
return m("li.clickable", {
class: classes.join(" "),
onclick: function(e) {
// Navigate to the appropriate link for this
m.route.set(data.route);
},
}, children);
}
};
......
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