fix: VBox flex:1 wrapper for card scroll, robust search keyword extraction
This commit is contained in:
parent
1a2aa0c0bb
commit
9c363bc617
@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
"binds": [{
|
"binds": [{
|
||||||
"wid": "self", "event": "search", "actiontype": "script", "target": "self",
|
"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",
|
"widgettype": "VBox",
|
||||||
"id": "plaza_cards",
|
"options": {"css": "filler", "flex": "1", "width": "100%"},
|
||||||
"options": {
|
"subwidgets": [
|
||||||
"url": "{{entire_url('plaza_model_cards.ui')}}?providerid={{active_provider}}&catelogid={{active_catelog}}&search={{active_search}}&page={{params_kw.get('page','1')}}",
|
{
|
||||||
"css": "filler",
|
"widgettype": "urlwidget",
|
||||||
"width": "100%",
|
"id": "plaza_cards",
|
||||||
"height": "100%"
|
"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%"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user