Merge pull request #2624 from brkcvn/master
Code refactoring for close prefix
This commit is contained in:
commit
bfbd1569d9
@ -139,7 +139,8 @@
|
|||||||
if (button.getAttribute("data-menu") !== menuRef && iconButton.children[0].textContent != "cancel") {
|
if (button.getAttribute("data-menu") !== menuRef && iconButton.children[0].textContent != "cancel") {
|
||||||
button.children[0].textContent = button.children[0].getAttribute("name");
|
button.children[0].textContent = button.children[0].getAttribute("name");
|
||||||
button.children[0].classList.remove("active"); // inactive icon
|
button.children[0].classList.remove("active"); // inactive icon
|
||||||
let split_id = iconButton.children[0].id.split("-cancel");
|
|
||||||
|
let split_id = button.children[0].id.split("-cancel");
|
||||||
button.children[0].id = split_id[0];
|
button.children[0].id = split_id[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,8 @@
|
|||||||
if (button.getAttribute("data-menu") !== menuRef && iconButton.children[0].textContent != "cancel") {
|
if (button.getAttribute("data-menu") !== menuRef && iconButton.children[0].textContent != "cancel") {
|
||||||
button.children[0].textContent = button.children[0].getAttribute("name");
|
button.children[0].textContent = button.children[0].getAttribute("name");
|
||||||
button.children[0].classList.remove("active"); // inactive icon
|
button.children[0].classList.remove("active"); // inactive icon
|
||||||
let split_id = iconButton.children[0].id.split("-cancel");
|
|
||||||
|
let split_id = button.children[0].id.split("-cancel");
|
||||||
button.children[0].id = split_id[0];
|
button.children[0].id = split_id[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user