add hook for auto archive on playbook

This commit is contained in:
Morgan McMillian 2012-12-01 20:52:43 -05:00
parent aedc443d3f
commit e8a26a6b4d

View file

@ -316,6 +316,10 @@ enyo.kind({
blackberry.io.file.saveFile(path,
blackberry.utils.stringToBlob(data));
result = "file saved";
if (path == this.preferences["filepath"] && this.autoarchive == true) {
this.autoarchive = false;
this.archiveTodo();
}
} catch (e) {
console.log("err: " + e);
result = "err: " + e;