Prevent link action with scripts

Required for the theme change that changes the buttons to `a` tags.
This commit is contained in:
André Zanghelini
2017-07-06 01:49:52 -03:00
parent 4ff11cd136
commit d37b95cb71
2 changed files with 4 additions and 2 deletions

View File

@@ -35,7 +35,8 @@ app.cacheBuster = null;
app.handleSearch(); app.handleSearch();
} }
$('body').on('click', '#new_topic', function () { $('body').on('click', '#new_topic', function (e) {
e.preventDefault();
app.newTopic(); app.newTopic();
}); });

View File

@@ -85,7 +85,8 @@ define('forum/topic/postTools', [
onReplyClicked($(this), tid); onReplyClicked($(this), tid);
}); });
$('.topic').on('click', '[component="topic/reply"]', function () { $('.topic').on('click', '[component="topic/reply"]', function (e) {
e.preventDefault();
onReplyClicked($(this), tid); onReplyClicked($(this), tid);
}); });