added highlight
This commit is contained in:
parent
1f6b60c07c
commit
e1af7c3a33
2 changed files with 11 additions and 0 deletions
|
@ -668,6 +668,10 @@ span ~ .panel-header-text {
|
||||||
fill: #0094fb;
|
fill: #0094fb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
background-color: #eb6c2d;
|
||||||
|
}
|
||||||
|
|
||||||
/* Panel Footer */
|
/* Panel Footer */
|
||||||
.panel-footer {
|
.panel-footer {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -644,6 +644,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
function next() {
|
function next() {
|
||||||
const nextElement = selectables[index + 1];
|
const nextElement = selectables[index + 1];
|
||||||
if (nextElement) {
|
if (nextElement) {
|
||||||
|
console.log(nextElement);
|
||||||
nextElement.focus();
|
nextElement.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1075,13 +1076,19 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
|
||||||
end = tmp;
|
end = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const panels = document.querySelectorAll(".unstriped .container-panel-row .userContext-wrapper");
|
||||||
|
console.log(panels);
|
||||||
|
|
||||||
|
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
for (let i = start; i <= end; i++) {
|
for (let i = start; i <= end; i++) {
|
||||||
Logic.addSelectedIdentity(identities[i]);
|
Logic.addSelectedIdentity(identities[i]);
|
||||||
|
panels[i].classList.add("highlight");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (let i = start; i <= end; i++) {
|
for (let i = start; i <= end; i++) {
|
||||||
Logic.removeSelectedIdentity(identities[i]);
|
Logic.removeSelectedIdentity(identities[i]);
|
||||||
|
panels[i].classList.remove("highlight");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue