mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fix: refreshing settings page on save if language changed
This commit is contained in:
@@ -89,7 +89,6 @@
|
||||
"digest_daily": "Daily",
|
||||
"digest_weekly": "Weekly",
|
||||
"digest_monthly": "Monthly",
|
||||
"settings-require-reload": "Some setting changes require a reload. Click here to reload the page.",
|
||||
|
||||
"has_no_follower": "This user doesn't have any followers :(",
|
||||
"follows_no_one": "This user isn't following anyone :(",
|
||||
|
||||
@@ -96,15 +96,7 @@ define('forum/account/settings', ['forum/account/header', 'components', 'sounds'
|
||||
sounds.loadMap();
|
||||
|
||||
if (requireReload && parseInt(app.user.uid, 10) === parseInt(ajaxify.data.theirid, 10)) {
|
||||
app.alert({
|
||||
id: 'setting-change',
|
||||
message: '[[user:settings-require-reload]]',
|
||||
type: 'warning',
|
||||
timeout: 5000,
|
||||
clickfn: function () {
|
||||
ajaxify.refresh();
|
||||
},
|
||||
});
|
||||
ajaxify.refresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user