mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Boolean site settings don't save immediately
This commit is contained in:
@ -23,10 +23,6 @@ Discourse.SiteSetting = Discourse.Model.extend({
|
||||
} else {
|
||||
// set the boolean value of the setting
|
||||
this.set('value', value ? 'true' : 'false');
|
||||
|
||||
// We save booleans right away, it's not like a text field where it makes sense to
|
||||
// undo what you typed in.
|
||||
this.save();
|
||||
}
|
||||
|
||||
}.property('value'),
|
||||
|
Reference in New Issue
Block a user