Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added notification for blackberry on file save

  • Loading branch information...
commit e87a03ddc7c47dc3b37a8826f3cda557b3d9782f 1 parent 94b918b
@thrrgilag authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 app/source/TodoTxt.js
View
12 app/source/TodoTxt.js
@@ -277,8 +277,16 @@ enyo.kind({
if (blackberry.io.file.exists(path)) {
blackberry.io.file.deleteFile(path);
}
- blackberry.io.file.saveFile(path,
- blackberry.utils.stringToBlob(data));
+ 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 });
}
Please sign in to comment.
Something went wrong with that request. Please try again.