Uncluttered checkForExtraText.
This commit is contained in:
parent
8b2a33414d
commit
7c42bcb97e
|
@ -24,10 +24,16 @@ function checkForExtraText() {
|
||||||
window.plugins.webintent.hasExtra(window.plugins.webintent.EXTRA_SUBJECT, function(hasSubjectExtra) {
|
window.plugins.webintent.hasExtra(window.plugins.webintent.EXTRA_SUBJECT, function(hasSubjectExtra) {
|
||||||
if (hasSubjectExtra) {
|
if (hasSubjectExtra) {
|
||||||
window.plugins.webintent.getExtra(window.plugins.webintent.EXTRA_SUBJECT, function(title) {
|
window.plugins.webintent.getExtra(window.plugins.webintent.EXTRA_SUBJECT, function(title) {
|
||||||
window.todo.create([{"title" : title, "content" : content}], reloadItems, console.log);
|
var param = {};
|
||||||
|
param.title = title;
|
||||||
|
param.content = content;
|
||||||
|
window.todo.create([param], reloadItems, console.log);
|
||||||
}, console.log);
|
}, console.log);
|
||||||
} else {
|
} else {
|
||||||
window.todo.create([{"title" : "NewTitle", "content" : content}], reloadItems, console.log);
|
var param = {};
|
||||||
|
param.title = "NewTitle";
|
||||||
|
param.content = content;
|
||||||
|
window.todo.create([param], reloadItems, console.log);
|
||||||
}
|
}
|
||||||
}, console.log);
|
}, console.log);
|
||||||
}, console.log);
|
}, console.log);
|
||||||
|
|
Loading…
Reference in New Issue