From ed967a0e2fa581de3ae1c20ff5c7dbaf2643aa6a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 17 Jul 2013 01:02:28 -0400 Subject: [PATCH] applied minor suggestion suggested by @damianb in issue #24 closed #88 (regression due to text selection enhancement) --- app.js | 4 +--- public/src/forum/topic.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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' : ''); }); } };