mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
This commit is contained in:
@@ -8,7 +8,7 @@ define('forum/account/settings', [
|
||||
|
||||
// If page skin is changed but not saved, switch the skin back
|
||||
$(window).on('action:ajaxify.start', function () {
|
||||
if (ajaxify.data.template.name === 'account/settings' && $('#bootswatchSkin').val() !== config.bootswatchSkin) {
|
||||
if (ajaxify.data.template.name === 'account/settings' && $('#bootswatchSkin').length && $('#bootswatchSkin').val() !== config.bootswatchSkin) {
|
||||
reskin(config.bootswatchSkin);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user