mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 13:05:49 +02:00
fix: closes #11945, fix skins loading if there are no custom skins
This commit is contained in:
@@ -18,10 +18,11 @@ define('admin/appearance/skins', [
|
|||||||
$('.custom-skin-settings [data-type="list"] [data-theme]').each((i, el) => {
|
$('.custom-skin-settings [data-type="list"] [data-theme]').each((i, el) => {
|
||||||
$(el).attr('data-theme', $(el).attr('data-theme').toLowerCase());
|
$(el).attr('data-theme', $(el).attr('data-theme').toLowerCase());
|
||||||
});
|
});
|
||||||
Skins.render(bsData);
|
highlightSelectedTheme(app.config.bootswatchSkin);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
settings.load('custom-skins', $('.custom-skin-settings'));
|
settings.load('custom-skins', $('.custom-skin-settings'));
|
||||||
|
Skins.render(bsData);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#save-custom-skins').on('click', function () {
|
$('#save-custom-skins').on('click', function () {
|
||||||
@@ -89,10 +90,7 @@ define('admin/appearance/skins', [
|
|||||||
}, function (html) {
|
}, function (html) {
|
||||||
themeContainer.html(html);
|
themeContainer.html(html);
|
||||||
|
|
||||||
if (app.config.bootswatchSkin) {
|
highlightSelectedTheme(app.config.bootswatchSkin);
|
||||||
const skin = app.config.bootswatchSkin;
|
|
||||||
highlightSelectedTheme(skin);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user