Mercurial > gemma
comparison pkg/controllers/system.go @ 4584:44b032028e48 iso-areas
Re-enable templating for sounding differences on config changes.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 08 Oct 2019 16:37:40 +0200 |
parents | 4c56682f83f7 |
children | 24156a964eaa |
comparison
equal
deleted
inserted
replaced
4583:0b01fd83bc3b | 4584:44b032028e48 |
---|---|
244 if s, ok := auth.GetSession(req); ok { | 244 if s, ok := auth.GetSession(req); ok { |
245 triggerSoundingResultsContoursRecalc(s.User, curr) | 245 triggerSoundingResultsContoursRecalc(s.User, curr) |
246 } | 246 } |
247 }) | 247 }) |
248 }) | 248 }) |
249 /* FIXME! | |
250 registerReconfigureFunc("morphology_classbreaks_compare", | 249 registerReconfigureFunc("morphology_classbreaks_compare", |
251 func(old sql.NullString, curr string) (func(*http.Request), error) { | 250 func(old sql.NullString, curr string) (func(*http.Request), error) { |
252 return reconfigureClassBreaks( | 251 return reconfigureClassBreaks( |
253 old, curr, | 252 old, curr, |
254 "sounding_differences", | 253 "sounding_differences", |
255 func(*http.Request) { go deleteSoundingDiffs() }) | 254 func(*http.Request) { go deleteSoundingDiffs() }) |
256 }) | 255 }) |
257 */ | |
258 | 256 |
259 reconf := func(which string) func(sql.NullString, string) (func(*http.Request), error) { | 257 reconf := func(which string) func(sql.NullString, string) (func(*http.Request), error) { |
260 return func(old sql.NullString, curr string) (func(*http.Request), error) { | 258 return func(old sql.NullString, curr string) (func(*http.Request), error) { |
261 return reconfigureWMSLayer(old, curr, which) | 259 return reconfigureWMSLayer(old, curr, which) |
262 } | 260 } |