Former-commit-id:9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f] Former-commit-id:06a8b51d6d
22 lines
673 B
JavaScript
22 lines
673 B
JavaScript
function PurgeControls(){
|
|
alert("Purgecontrol created");
|
|
this.tbName = document.getElementById("tbName");
|
|
this.purgeResult = document.getElementById("result");
|
|
this.purgeResult.value = "";
|
|
this.tbName.value = "";
|
|
}
|
|
PurgeControls.prototype.purge = function(){
|
|
var inputtbName = this.tbName.value;
|
|
var self = this;
|
|
self.processResult("Purging! May take a while!");
|
|
DbPurge.purgeDbTable(inputtbName, function(data) { self.processResult(data); });
|
|
}
|
|
|
|
PurgeControls.prototype.processResult = function(data){
|
|
this.purgeResult.value = data;
|
|
}
|
|
|
|
PurgeControls.prototype.reset = function(data){
|
|
this.purgeResult.value = "";
|
|
this.tbName.value = "";
|
|
}
|