Fixed icon issue in EditUsers/Servers

This commit is contained in:
Mirco Wittrien 2019-01-20 19:21:16 +01:00
parent fce42b3fbb
commit e7471f7dd2
2 changed files with 22 additions and 22 deletions

View File

@ -3,7 +3,7 @@
class EditServers {
getName () {return "EditServers";}
getVersion () {return "1.9.1";}
getVersion () {return "1.9.2";}
getAuthor () {return "DevilBro";}
@ -266,18 +266,18 @@ class EditServers {
BDFDB.appendModal(serverSettingsModal);
removeiconinput.addEventListener("click", e => {
serverurlinput.disabled = e.currentTarget.checked;
removeiconinput.addEventListener("click", () => {
serverurlinput.disabled = removeiconinput.checked;
});
serverurlinput.addEventListener("change keyup paste", e => {
this.checkUrl(e.currentTarget);
serverurlinput.addEventListener("input", () => {
this.checkUrl(serverurlinput);
});
serverurlinput.addEventListener("mouseenter", e => {
BDFDB.addClass(e.currentTarget, "hovering");
this.createNoticeTooltip(e.currentTarget);
serverurlinput.addEventListener("mouseenter", () => {
BDFDB.addClass(serverurlinput, "hovering");
this.createNoticeTooltip(serverurlinput);
});
serverurlinput.addEventListener("mouseleave", e => {
BDFDB.removeClass(e.currentTarget, "hovering");
serverurlinput.addEventListener("mouseleave", () => {
BDFDB.removeClass(serverurlinput, "hovering");
BDFDB.removeEles(BDFDB.dotCNS.tooltips + ".notice-tooltip");
});
BDFDB.addChildEventListener(serverSettingsModal, "click", ".btn-save", e => {

View File

@ -3,7 +3,7 @@
class EditUsers {
getName () {return "EditUsers";}
getVersion () {return "3.2.3";}
getVersion () {return "3.2.4";}
getAuthor () {return "DevilBro";}
@ -341,21 +341,21 @@ class EditUsers {
BDFDB.appendModal(userSettingsModal);
removeiconinput.addEventListener("click", e => {
userurlinput.disabled = e.currentTarget.checked;
removeiconinput.addEventListener("click", () => {
userurlinput.disabled = removeiconinput.checked;
});
ignoretagcolorinput.addEventListener("click", e => {
BDFDB.toggleClass(ignoredswatches, "disabled", e.currentTarget.checked);
ignoretagcolorinput.addEventListener("click", () => {
BDFDB.toggleClass(ignoredswatches, "disabled", ignoretagcolorinput.checked);
});
userurlinput.addEventListener("change keyup paste", e => {
this.checkUrl(e.currentTarget);
userurlinput.addEventListener("input", () => {
this.checkUrl(userurlinput);
});
userurlinput.addEventListener("mouseenter", e => {
BDFDB.addClass(e.currentTarget, "hovering");
this.createNoticeTooltip(e.currentTarget);
userurlinput.addEventListener("mouseenter", () => {
BDFDB.addClass(userurlinput, "hovering");
this.createNoticeTooltip(userurlinput);
});
userurlinput.addEventListener("mouseleave", e => {
BDFDB.removeClass(e.currentTarget, "hovering");
userurlinput.addEventListener("mouseleave", () => {
BDFDB.removeClass(userurlinput, "hovering");
BDFDB.removeEles(BDFDB.dotCNS.tooltips + ".notice-tooltip");
});
BDFDB.addChildEventListener(userSettingsModal, "click", ".btn-save", e => {