Skip to content

Node.js based forum software built for the modern web

jquery best

Baris Usaklie12d02f29ca2
diff --git a/public/src/forum/category.js b/public/src/forum/category.js
index 07d64471d3..db38581b5c 100644
--- a/public/src/forum/category.js
+++ b/public/src/forum/category.js
@@ -27,8 +27,7 @@ define(function () {
return false;
});
- var new_post = document.getElementById('new_post');
- new_post.onclick = function () {
+ $('#new_post').on('click', function () {
require(['composer'], function (cmp) {
cmp.push(0, cid);
});