mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
closes #3463
This commit is contained in:
@@ -5,7 +5,11 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
|
|||||||
var Settings = {};
|
var Settings = {};
|
||||||
|
|
||||||
Settings.init = function() {
|
Settings.init = function() {
|
||||||
$(window).on('action:config.loaded', Settings.prepare);
|
if (!app.config) {
|
||||||
|
$(window).on('action:config.loaded', Settings.prepare);
|
||||||
|
} else {
|
||||||
|
Settings.prepare();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Settings.populateTOC = function() {
|
Settings.populateTOC = function() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
require(['admin/settings'], function(Settings) {
|
require(['admin/settings'], function(Settings) {
|
||||||
Settings.prepare();
|
Settings.init();
|
||||||
Settings.populateTOC();
|
Settings.populateTOC();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user