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