diff --git a/wwwroot/model_plaza.ui b/wwwroot/model_plaza.ui index 2f017af..9fb2991 100644 --- a/wwwroot/model_plaza.ui +++ b/wwwroot/model_plaza.ui @@ -27,7 +27,7 @@ }, "binds": [{ "wid": "self", "event": "search", "actiontype": "script", "target": "self", - "script": "location.href='{{base}}?providerid={{active_provider}}&catelogid={{active_catelog}}&search='+encodeURIComponent(event.keyword||'');" + "script": "var kw=(event.params&&event.params.keyword)||event.keyword||'';location.href='{{base}}?providerid={{active_provider}}&catelogid={{active_catelog}}&search='+encodeURIComponent(kw);" }] } ] @@ -117,14 +117,20 @@ ] }, { - "widgettype": "urlwidget", - "id": "plaza_cards", - "options": { - "url": "{{entire_url('plaza_model_cards.ui')}}?providerid={{active_provider}}&catelogid={{active_catelog}}&search={{active_search}}&page={{params_kw.get('page','1')}}", - "css": "filler", - "width": "100%", - "height": "100%" - } + "widgettype": "VBox", + "options": {"css": "filler", "flex": "1", "width": "100%"}, + "subwidgets": [ + { + "widgettype": "urlwidget", + "id": "plaza_cards", + "options": { + "url": "{{entire_url('plaza_model_cards.ui')}}?providerid={{active_provider}}&catelogid={{active_catelog}}&search={{active_search}}&page={{params_kw.get('page','1')}}", + "css": "filler", + "width": "100%", + "height": "100%" + } + } + ] } ] }