added notification for blackberry on file save
This commit is contained in:
parent
94b918b6b8
commit
e87a03ddc7
1 changed files with 10 additions and 2 deletions
|
@ -277,8 +277,16 @@ enyo.kind({
|
|||
if (blackberry.io.file.exists(path)) {
|
||||
blackberry.io.file.deleteFile(path);
|
||||
}
|
||||
var result = "";
|
||||
try {
|
||||
blackberry.io.file.saveFile(path,
|
||||
blackberry.utils.stringToBlob(data));
|
||||
result = "file saved";
|
||||
} catch (e) {
|
||||
console.log("err: " + e);
|
||||
result = "err: " + e;
|
||||
}
|
||||
this.showToast(result);
|
||||
} else {
|
||||
this.$.writeFile.call({ path: path, content: data });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue