mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 15:33:10 +02:00
Fix for the multiselection.
This is the fix for the multiselection case. (It doesn't include the solution for User Data.)
This commit is contained in:
parent
e6a45690ba
commit
ed9918a537
1 changed files with 9 additions and 1 deletions
|
@ -4491,7 +4491,15 @@ function loaded() {
|
|||
}
|
||||
|
||||
function showOnTheSamePage(entityType) {
|
||||
if (!GROUPS_PER_TYPE[entityType].includes(currentTab)) {
|
||||
var i;
|
||||
var numbType = entityType.length;
|
||||
var matchingType = 0;
|
||||
for (i = 0; i < numbType; i++) {
|
||||
if (GROUPS_PER_TYPE[entityType[i]].includes(currentTab)) {
|
||||
matchingType = matchingType + 1;
|
||||
}
|
||||
}
|
||||
if (matchingType !== numbType) {
|
||||
currentTab = "base";
|
||||
}
|
||||
showPage(currentTab);
|
||||
|
|
Loading…
Reference in a new issue