mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
closes #5768
This commit is contained in:
@@ -470,6 +470,9 @@ define('settings', function () {
|
||||
}
|
||||
}
|
||||
|
||||
// Save loaded settings into ajaxify.data for use client-side
|
||||
ajaxify.data.settings = values;
|
||||
|
||||
$(formEl).deserialize(values);
|
||||
$(formEl).find('input[type="checkbox"]').each(function () {
|
||||
$(this).parents('.mdl-switch').toggleClass('is-checked', $(this).is(':checked'));
|
||||
@@ -510,6 +513,9 @@ define('settings', function () {
|
||||
// Remove unsaved flag to re-enable ajaxify
|
||||
app.flags._unsaved = false;
|
||||
|
||||
// Also save to local ajaxify.data
|
||||
ajaxify.data.settings = values;
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback(err);
|
||||
} else if (err) {
|
||||
|
||||
Reference in New Issue
Block a user