move arround classes to removed deps on settings
This commit is contained in:
parent
274c165357
commit
39f7a3701a
11 changed files with 320 additions and 288 deletions
|
@ -39,10 +39,7 @@ class Contextmenu {
|
|||
intext.classList.add("contextbutton");
|
||||
intext.textContent = thing[0];
|
||||
console.log(thing);
|
||||
if (thing[5] === "button") {
|
||||
intext.onclick = thing[1].bind(addinfo, other);
|
||||
}
|
||||
else if (thing[5] === "submenu") {
|
||||
if (thing[5] === "button" || thing[5] === "submenu") {
|
||||
intext.onclick = thing[1].bind(addinfo, other);
|
||||
}
|
||||
div.appendChild(intext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue