Skip to content

Node.js based forum software built for the modern web

applied minor suggestion suggested by @damianb in issue #24

Julian Lamed967a0e2fa5
diff --git a/app.js b/app.js
index 618c31aaad..e0c499ae7e 100644
--- a/app.js
+++ b/app.js
@@ -77,9 +77,7 @@ if (!nconf.get('setup') && nconf.get('base_url')) {
'noscript/header', 'noscript/home', 'noscript/category', 'noscript/topic'
]);
- templates.ready(function() {
- webserver.init();
- });
+ templates.ready(webserver.init);
//setup scripts to be moved outside of the app in future.
function setup_categories() {
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 03ff757387..217f176b5c 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -232,7 +232,7 @@
if (thread_state.locked !== '1') {
require(['composer'], function(cmp) {
- cmp.push(tid, null, null, selectionText + '\n\n');
+ cmp.push(tid, null, null, selectionText.length > 0 ? selectionText + '\n\n' : '');
});
}
};