rename methods

This commit is contained in:
2020-12-22 17:58:47 +01:00
parent d9ffda3088
commit c48313f298
3 changed files with 6 additions and 6 deletions

View File

@@ -6,13 +6,13 @@ class Controller {
this.redrawDirTree(view);
var cloneBtn = document.getElementsByClassName("clone")[0];
var purgeBtn = document.getElementsByClassName("purge")[0];
var purgeBtn = document.getElementsByClassName("wipe")[0];
cloneBtn.addEventListener("click", this.cloneRep.bind(this));
purgeBtn.addEventListener("click", this.purgeFS.bind(this));
purgeBtn.addEventListener("click", this.wipeFS.bind(this));
}
purgeFS() {
this.model.purgeFS();
wipeFS() {
this.model.wipeFS();
//window.location.reload();
this.redrawDirTree(this.view);
}