Skip to content
Snippets Groups Projects
Commit 3cab4d34 authored by danielgrippi's avatar danielgrippi
Browse files

fix nav img issue

parent 74668081
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,10 @@ app.views.PostViewerNav = app.views.Base.extend({
pjax : function(evt) {
if(evt) { evt.preventDefault(); }
app.router.navigate($(evt.target).attr("href").substring(1), true)
var link;
evt.target.tagName == "IMG" ? link = $(evt.target).closest("a") : link = $(evt.target)
app.router.navigate(link.attr("href").substring(1), true)
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment