|
@@ -44,7 +44,7 @@ func GetModuleWui() *ModuleWui {
|
|
|
IKernelModule: kmodule.NewKernelModule("wui"),
|
|
IKernelModule: kmodule.NewKernelModule("wui"),
|
|
|
kServHttp: kserv_http.GetKernelServHttp(),
|
|
kServHttp: kserv_http.GetKernelServHttp(),
|
|
|
}
|
|
}
|
|
|
- sf.log = sf.Ctx().Log()
|
|
|
|
|
|
|
+ sf.log = sf.wCtx.Log()
|
|
|
_ = page_monolit.GetPageMonolit()
|
|
_ = page_monolit.GetPageMonolit()
|
|
|
_ = page_module.GetPageModule()
|
|
_ = page_module.GetPageModule()
|
|
|
|
|
|
|
@@ -72,11 +72,13 @@ func (sf *ModuleWui) wuiClick(ctx *fiber.Ctx) error {
|
|
|
widget0 := sf.wCtx.Get(id)
|
|
widget0 := sf.wCtx.Get(id)
|
|
|
if widget0 == nil {
|
|
if widget0 == nil {
|
|
|
strOut := fmt.Sprintf("ModuleWui.wuiClick(): id(%v), widget not exists", id)
|
|
strOut := fmt.Sprintf("ModuleWui.wuiClick(): id(%v), widget not exists", id)
|
|
|
|
|
+ sf.log.Err(strOut)
|
|
|
return ctx.SendString(strOut)
|
|
return ctx.SendString(strOut)
|
|
|
}
|
|
}
|
|
|
widget1, isOk := widget0.Val().(IWuiButton)
|
|
widget1, isOk := widget0.Val().(IWuiButton)
|
|
|
if !isOk {
|
|
if !isOk {
|
|
|
strOut := fmt.Sprintf("ModuleWui.wuiClick(): widget(%T) not button", widget0.Val())
|
|
strOut := fmt.Sprintf("ModuleWui.wuiClick(): widget(%T) not button", widget0.Val())
|
|
|
|
|
+ sf.log.Err(strOut)
|
|
|
return ctx.SendString(strOut)
|
|
return ctx.SendString(strOut)
|
|
|
}
|
|
}
|
|
|
strOut := widget1.Click()
|
|
strOut := widget1.Click()
|