Barış Soner Uşaklı 3 years ago
parent a97444169f
commit 6a0339dea4

@ -8,7 +8,7 @@ define('forum/account/settings', [
// If page skin is changed but not saved, switch the skin back // If page skin is changed but not saved, switch the skin back
$(window).on('action:ajaxify.start', function () { $(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); reskin(config.bootswatchSkin);
} }
}); });

Loading…
Cancel
Save