Allow saving config from anywhere

This commit is contained in:
Audrius Butkevicius
2014-09-06 13:11:18 +01:00
parent 74271a479f
commit 4b57821f52
3 changed files with 73 additions and 67 deletions

View File

@@ -361,8 +361,9 @@ func restPostConfig(m *model.Model, w http.ResponseWriter, r *http.Request) {
// Activate and save
newCfg.Location = cfg.Location
newCfg.Save()
cfg = newCfg
saveConfig()
}
}