mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
applied minor suggestion suggested by @damianb in issue #24
closed #88 (regression due to text selection enhancement)
This commit is contained in:
4
app.js
4
app.js
@@ -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' : '');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user