mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
Prevent link action with scripts
Required for the theme change that changes the buttons to `a` tags.
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user