change getCurrentPanel to getCurrentPanelElement
This commit is contained in:
parent
2cddbefb63
commit
29a0277398
1 changed files with 2 additions and 2 deletions
|
@ -383,7 +383,7 @@ const Logic = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getCurrentPanel() {
|
getCurrentPanelElement() {
|
||||||
const panelItem = this._panels[this._currentPanel];
|
const panelItem = this._panels[this._currentPanel];
|
||||||
return document.querySelector(this.getPanelSelector(panelItem));
|
return document.querySelector(this.getPanelSelector(panelItem));
|
||||||
},
|
},
|
||||||
|
@ -556,7 +556,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
previous();
|
previous();
|
||||||
break;
|
break;
|
||||||
case 13: {
|
case 13: {
|
||||||
const panel = Logic.getCurrentPanel();
|
const panel = Logic.getCurrentPanelElement();
|
||||||
const button = panel.getElementsByTagName("A")[0];
|
const button = panel.getElementsByTagName("A")[0];
|
||||||
if(button) {
|
if(button) {
|
||||||
button.click();
|
button.click();
|
||||||
|
|
Loading…
Add table
Reference in a new issue