diff --git a/app/appinfo.json b/app/appinfo.json
index 53e3fe9..05faffe 100644
--- a/app/appinfo.json
+++ b/app/appinfo.json
@@ -1,6 +1,6 @@
{
"id": "com.monkeystew.todotxtenyo.beta",
- "version": "0.1.1",
+ "version": "0.2.0",
"vendor": "Monkeystew",
"type": "web",
"main": "index.html",
diff --git a/app/index.html b/app/index.html
index 10702e7..1b548e8 100644
--- a/app/index.html
+++ b/app/index.html
@@ -16,6 +16,11 @@
appInstance.renderInto(document.body);
+
0.2.0
+
+ - Intial BlackBerry PlayBook support.
+ - Insert for project, context, and priority on add or edit.
+
0.1.1
- Bugfix: race condition when deleting certain entries.
diff --git a/app/source/Dropbox.js b/app/source/Dropbox.js
index 48158bd..583c806 100644
--- a/app/source/Dropbox.js
+++ b/app/source/Dropbox.js
@@ -141,10 +141,16 @@ enyo.kind({
this.requestToken = tokens[1].split("=")[1];
console.log("...launching browser window...");
- this.$.launch.call({
+ if (this.owner.os == "BlackBerry") {
+ var args = new blackberry.invoke.BrowserArguments(url);
+ blackberry.invoke.invoke(
+ blackberry.invoke.APP_BROWSER, args);
+ } else {
+ this.$.launch.call({
"id": "com.palm.app.browser",
"params": {"target": url}
- });
+ });
+ }
}
},
diff --git a/app/source/TodoEdit.js b/app/source/TodoEdit.js
index dc7b24a..e18c40c 100644
--- a/app/source/TodoEdit.js
+++ b/app/source/TodoEdit.js
@@ -22,9 +22,33 @@ enyo.kind({
"onSave": ""
},
components: [
-
- {flex: 1, kind: "Scroller", components: [
- {kind: "RichText", name: "tododetail"},
+ {name: "insertPopup", kind: "ModalDialog", dismissWithClick: true,
+ layoutKind: "VFlexLayout", height: "60%",
+ contentHeight: "100%", onClose: "closePopup",
+ components: [
+ {flex: 1, name: "iscroller", kind: "Scroller",
+ components: [
+ {name: "projects", kind: "RowGroup", caption: "Projects"},
+ {name: "contexts", kind: "RowGroup", caption: "Contexts"}
+ ]}
+ ]},
+ {name: "filterToolbar", kind: "Toolbar", pack: "justify", className: "enyo-toolbar-light",
+ components: [
+ {kind: "RadioGroup", name: "priGroup",
+ onChange: "setPriority", components: [
+ {caption: "-", value: "-"},
+ {caption: "A", value: "A"},
+ {caption: "B", value: "B"},
+ {caption: "C", value: "C"},
+ {caption: "D", value: "D"},
+ {caption: "E", value: "E"}
+ ]},
+ {kind: "Button", caption: "+", onclick: "showInsert"}
+ ]
+ },
+ {flex: 1, name: "scroller", kind: "Scroller", components: [
+ {kind: "RichText", name: "tododetail", richContent: false,
+ className: "enyo-box-input"},
]},
{name: "editToolbar", kind: "Toolbar", pack: "justify", className: "enyo-toolbar-light",
components: [
@@ -35,6 +59,65 @@ enyo.kind({
]
}
- ]
+ ],
+
+ setPriority: function(inSender) {
+ var pri = inSender.getValue();
+ var val = this.$.tododetail.getValue();
+ val = val.replace(/^\([A-E]\)\s/,"")
+ if (pri.match(/[A-E]/)) {
+ this.$.tododetail.setValue(
+ "(" + pri + ") " + val);
+ } else {
+ this.$.tododetail.setValue( val );
+ }
+ },
+
+ showInsert: function() {
+ this.$.insertPopup.openAtCenter();
+ this.projectList = this.owner.$.listView.getProjectList();
+ for (i=0; i * { height:100%; }
diff --git a/bbww/appindex.html b/bbww/appindex.html
new file mode 100644
index 0000000..78eba64
--- /dev/null
+++ b/bbww/appindex.html
@@ -0,0 +1,33 @@
+
+
+
+ Todo.txt Enyo
+
+
+
+
+
+
+
0.2.0
+
+ - Intial BlackBerry PlayBook support.
+ - Insert for project, context, and priority on add or edit.
+
+
0.1.1
+
+ - Bugfix: race condition when deleting certain entries.
+
+
0.1.0
+
+ - Initial open source and beta release.
+
+
+
+
diff --git a/bbww/config.xml b/bbww/config.xml
new file mode 100644
index 0000000..4bad90b
--- /dev/null
+++ b/bbww/config.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+ Todo.txt Enyo
+
+ Morgan McMillian
+
+
+ A mobile application for managing your todo.txt file written using the EnyoJS framework.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ access_shared
+
+
+
diff --git a/pkg/packageinfo.json b/pkg/packageinfo.json
index f08ebe3..8f22813 100644
--- a/pkg/packageinfo.json
+++ b/pkg/packageinfo.json
@@ -3,7 +3,7 @@
"package_format_version": 2,
"loc_name": "Todo.txt Enyo",
"icon": "icon.png",
- "version": "0.1.1",
+ "version": "0.2.0",
"vendor": "Monkeystew",
"app": "com.monkeystew.todotxtenyo.beta",
"services": ["com.monkeystew.todotxtenyo.beta.service"]
diff --git a/srv/ReadFileAssistant.js b/srv/ReadFileAssistant.js
index b4efdde..5f92dae 100644
--- a/srv/ReadFileAssistant.js
+++ b/srv/ReadFileAssistant.js
@@ -9,7 +9,6 @@ ReadFileAssistant.prototype.run = function(future) {
fs.readFile(path, 'utf8', function(err,data) {
//future.result = { path: path, content: data };
setTimeout(function () {
- console.log("delay test...");
future.result = { path: path, content: data };
}, 100);
});