v1.18.x
psychobunny 10 years ago
parent 6b054a6d14
commit 0cb8f2b80c

@ -5,7 +5,11 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
var Settings = {};
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() {

@ -6,7 +6,7 @@
<script>
require(['admin/settings'], function(Settings) {
Settings.prepare();
Settings.init();
Settings.populateTOC();
});
</script>

Loading…
Cancel
Save