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);"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -116,6 +116,10 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"widgettype": "VBox",
|
||||||
|
"options": {"css": "filler", "flex": "1", "width": "100%"},
|
||||||
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "urlwidget",
|
"widgettype": "urlwidget",
|
||||||
"id": "plaza_cards",
|
"id": "plaza_cards",
|
||||||
@ -130,3 +134,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user