Mercurial > gemma
comparison pkg/controllers/system.go @ 4579:4c56682f83f7 iso-areas
Adjusted templating for iso areas.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 08 Oct 2019 13:02:21 +0200 |
parents | e020e6e34ad7 |
children | 44b032028e48 |
comparison
equal
deleted
inserted
replaced
4578:c657dec6b0fa | 4579:4c56682f83f7 |
---|---|
237 func init() { | 237 func init() { |
238 registerReconfigureFunc("morphology_classbreaks", | 238 registerReconfigureFunc("morphology_classbreaks", |
239 func(old sql.NullString, curr string) (func(*http.Request), error) { | 239 func(old sql.NullString, curr string) (func(*http.Request), error) { |
240 return reconfigureClassBreaks( | 240 return reconfigureClassBreaks( |
241 old, curr, | 241 old, curr, |
242 "sounding_results_contour_lines_geoserver", | 242 "sounding_results_areas_geoserver", |
243 func(req *http.Request) { | 243 func(req *http.Request) { |
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! | |
249 registerReconfigureFunc("morphology_classbreaks_compare", | 250 registerReconfigureFunc("morphology_classbreaks_compare", |
250 func(old sql.NullString, curr string) (func(*http.Request), error) { | 251 func(old sql.NullString, curr string) (func(*http.Request), error) { |
251 return reconfigureClassBreaks( | 252 return reconfigureClassBreaks( |
252 old, curr, | 253 old, curr, |
253 "sounding_differences", | 254 "sounding_differences", |
254 func(*http.Request) { go deleteSoundingDiffs() }) | 255 func(*http.Request) { go deleteSoundingDiffs() }) |
255 }) | 256 }) |
257 */ | |
256 | 258 |
257 reconf := func(which string) func(sql.NullString, string) (func(*http.Request), error) { | 259 reconf := func(which string) func(sql.NullString, string) (func(*http.Request), error) { |
258 return func(old sql.NullString, curr string) (func(*http.Request), error) { | 260 return func(old sql.NullString, curr string) (func(*http.Request), error) { |
259 return reconfigureWMSLayer(old, curr, which) | 261 return reconfigureWMSLayer(old, curr, which) |
260 } | 262 } |