Node.js based forum software built for the modern web
topics: reply button in mobile menu + icon
psychobunny97ea98ed3f0f
diff --git a/public/src/modules/mobileMenu.js b/public/src/modules/mobileMenu.jsindex 2880e26464..c21bc5bed9 100644--- a/public/src/modules/mobileMenu.js+++ b/public/src/modules/mobileMenu.js@@ -65,15 +65,25 @@ define(function() {mobileMenu.onNavigate = function() {- var cid = templates.get('category_id');+ var cid = templates.get('category_id'),+ tid = templates.get('topic_id');if (cid) {postBtn.style.display = 'inline-block';postBtn.onclick = function() {require(['composer'], function(cmp) {- cmp.push(0, cid); //todo check if in post+ cmp.push(0, cid);});};+ postBtn.children[0].className = 'icon-plus icon-2x';+ } else if (tid) {+ postBtn.style.display = 'inline-block';+ postBtn.onclick = function() {+ require(['composer'], function(cmp) {+ cmp.push(tid);+ });+ };+ postBtn.children[0].className = 'icon-reply icon-2x'} else {postBtn.style.display = 'none';}