Renamed more-icons-per-row-5x4-flare576
[webos-internals:adamrmcd-modifications.git] / tasks / new-task-details.patch
1 This is a small modification that changes how new tasks are handled.
2 Ordinarily, new tasks appear at the bottom of the task list. In this
3 view, you need to tap again to enter details like a due date.  With
4 this patch, when you add a task, a details card appears, in which you
5 can mmediately set the task name, due date, task list, and priority.
6 You're not forced to fill out each of those fields, they're just
7 available. Enter your info, then swipe back and you'll see your new
8 task in the list, or close the new task card (flick up) and the task
9 is saved automatically.
10
11 Tested-On: 1.1
12
13 Mod by Tuckmobile
14 Patch submitted by JackieRipper
15 Index: /usr/palm/applications/com.palm.app.tasks/app/controllers/tasks-assistant.js
16 ===================================================================
17 --- .orig/usr/palm/applications/com.palm.app.tasks/app/controllers/tasks-assistant.js
18 +++ /usr/palm/applications/com.palm.app.tasks/app/controllers/tasks-assistant.js
19 @@ -918,7 +918,7 @@ var TasksAssistant = Class.create({
20                         this.listElement.mojo.insertItemsAt(index, [task]);
21                         this.listElement.mojo.revealItem(index);
22                         this.addWidgets(this.listElement.mojo.getNodeByIndex(index).querySelector('[name="subject"]'), task);
23 -                       this.listElement.mojo.focusItem(task);
24 +                       this.state.edit.call(this, index);
25                         
26                         task.priority = previousTask.priority; // Attempt to inherit the priority
27                         
28 @@ -941,7 +941,7 @@ var TasksAssistant = Class.create({
29                                 {
30                                         // If we find the node we just added, focus on it.  We might not find the node however if the list is being refreshed
31                                         self.addWidgets(node.querySelector('[name="subject"]'), task);
32 -                                       self.listElement.mojo.focusItem(task);
33 +                                       self.state.edit.call(self, index);
34                                 }
35                                 
36                                 Mojo.Log.info("New task %j %j", task, self.task);