applied minor suggestion suggested by @damianb in issue #24

closed #88 (regression due to text selection enhancement)
v1.18.x
Julian Lam 12 years ago
parent 3feb977cc4
commit ed967a0e2f

@ -77,9 +77,7 @@ if (!nconf.get('setup') && nconf.get('base_url')) {
'noscript/header', 'noscript/home', 'noscript/category', 'noscript/topic' 'noscript/header', 'noscript/home', 'noscript/category', 'noscript/topic'
]); ]);
templates.ready(function() { templates.ready(webserver.init);
webserver.init();
});
//setup scripts to be moved outside of the app in future. //setup scripts to be moved outside of the app in future.
function setup_categories() { function setup_categories() {

@ -232,7 +232,7 @@
if (thread_state.locked !== '1') { if (thread_state.locked !== '1') {
require(['composer'], function(cmp) { require(['composer'], function(cmp) {
cmp.push(tid, null, null, selectionText + '\n\n'); cmp.push(tid, null, null, selectionText.length > 0 ? selectionText + '\n\n' : '');
}); });
} }
}; };

Loading…
Cancel
Save