offline done.txt load for playbook
This commit is contained in:
parent
2a7bebd457
commit
aedc443d3f
1 changed files with 8 additions and 0 deletions
|
@ -392,6 +392,14 @@ enyo.kind({
|
|||
var path = this.preferences["filepath"].replace(/todo\.txt/, "done.txt");
|
||||
if (this.os == "BlackBerry") {
|
||||
// TODO do something here
|
||||
if (blackberry.io.file.exists(path)) {
|
||||
blackberry.io.file.readFile(path,
|
||||
function(fpath, blob) {
|
||||
var data = blackberry.utils.blobToString(blob);
|
||||
appInstance.loadArchive(null, {content: data});
|
||||
}
|
||||
);
|
||||
}
|
||||
} else {
|
||||
this.$.readDoneFile.call({ path: path });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue