mirror of https://github.com/zlatinb/muwire
focus on the tab of the new search
parent
15508f417d
commit
d18a618575
|
@ -32,6 +32,9 @@ class MainFrameController {
|
|||
|
||||
@ControllerAction
|
||||
void search() {
|
||||
def cardsPanel = builder.getVariable("cards-panel")
|
||||
cardsPanel.getLayout().show(cardsPanel, "search window")
|
||||
|
||||
def search = builder.getVariable("search-field").text
|
||||
def uuid = UUID.randomUUID()
|
||||
Map<String, Object> params = new HashMap<>()
|
||||
|
|
|
@ -55,6 +55,7 @@ class SearchTabView {
|
|||
parent = mvcGroup.parentGroup.view.builder.getVariable("result-tabs")
|
||||
parent.addTab(searchTerms, pane)
|
||||
int index = parent.indexOfTab(searchTerms)
|
||||
parent.setSelectedIndex(index)
|
||||
|
||||
def tabPanel
|
||||
builder.with {
|
||||
|
|
Loading…
Reference in New Issue