|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|