applied minor suggestion suggested by @damianb in issue #24

closed #88 (regression due to text selection enhancement)
This commit is contained in:
Julian Lam
2013-07-17 01:02:28 -04:00
parent 3feb977cc4
commit ed967a0e2f
2 changed files with 2 additions and 4 deletions

4
app.js
View File

@@ -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() {

View File

@@ -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' : '');
});
}
};