Update ServerFolders.plugin.js

This commit is contained in:
Mirco Wittrien 2019-01-14 15:00:06 +01:00
parent c527a6de27
commit fd0459c352
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
class ServerFolders {
getName () {return "ServerFolders";}
getVersion () {return "6.0.0";}
getVersion () {return "6.0.1";}
getAuthor () {return "DevilBro";}
@ -530,9 +530,9 @@ class ServerFolders {
BDFDB.appendModal(folderSettingsModal);
BDFDB.addChildEventListener(folderSettingsModal, "change", "input[type='file'][option]", () => {
let file = ele.files[0];
if (file) this.fetchCustomIcon(folderSettingsModal, ele.getAttribute("option"));
BDFDB.addChildEventListener(folderSettingsModal, "change", "input[type='file'][option]", e => {
let file = e.currentTarget.files[0];
if (file) this.fetchCustomIcon(folderSettingsModal, e.currentTarget.getAttribute("option"));
});
BDFDB.addChildEventListener(folderSettingsModal, "keyup", "input[type='text'][option]", e => {
if (e.which == 13) this.fetchCustomIcon(folderSettingsModal, e.currentTarget.getAttribute("option"));