Boolean site settings don't save immediately

This commit is contained in:
Neil Lalonde
2014-06-05 17:02:15 -04:00
parent e114e47533
commit cc257e1f5c
2 changed files with 10 additions and 4 deletions

View File

@ -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'),