Difference between revisions of "Patch Tasks Always Show Details of New Tasks"

From WebOS Internals
Jump to navigation Jump to search
(edited TOC to be more uniform with other patches pages and slight modification of page text)
Line 1: Line 1:
 
[[Image:Tasks.png|right]]
 
[[Image:Tasks.png|right]]
== Description==
+
== Introduction==
  
I've made a small modification that changes how new tasks are handled.  Ordinarily, new tasks appear at the bottom of the task list.  In this view, you need to tap again to enter details like a due date.
+
I've made a small modification that changes how new tasks are handled.  Ordinarily, new tasks appear at the bottom of the task list.  In this view, you need to tap again to enter details like a due date. With this modification when add a task, the details card appears (pictured).  At this window you can immediately set the task name, due date, task list, and priority.  You're not forced to fill out each of those fields, they're just available. Enter your info, then swipe back and you'll see your new task in the list, or close the new task card (flick up) and the task is saved automatically. 
  
Mod: When you add a task, a details card appears (pictured).  At this window you can immediately set the task name, due date, task list, and priority.  You're not forced to fill out each of those fields, they're just available.  Enter your info, then swipe back and you'll see your new task in the list, or close the new task card (flick up) and the task is saved automatically. 
+
==Disclaimer==
  
Rooting your Pre is requiredThese directions assume you have already done so.
+
'''I've tested this on v1.03 and v1.04 and I haven't had any problems yet.  Use at your own riskI'm not responsible. And make a backup!'''
  
== Disclaimer==
+
==Editing Process==
'''I've tested this on v1.03 and v1.04 and I haven't had any problems yet.  Use at your own risk. I'm not responsible. And make a backup!'''
+
 
 +
[[Portal:Accessing Linux|Accessing linux]] is required. These directions assume you have already done so.
  
== Directions==
 
 
'''1.''' Mount for rw access:
 
'''1.''' Mount for rw access:
  
Line 68: Line 68:
 
(os 1.1 changes verified by tcurtin on 7/24/09)
 
(os 1.1 changes verified by tcurtin on 7/24/09)
  
== Contact Me==
+
===Contact Me===
 
Please leave me a note if it works for you:
 
Please leave me a note if it works for you:
 
http://www.everythingpre.com/forum/webos-development/new-mod-always-show-new-task-details-21326.html#post106281
 
http://www.everythingpre.com/forum/webos-development/new-mod-always-show-new-task-details-21326.html#post106281
  
 
//-Tuckmobile//
 
//-Tuckmobile//
 +
 +
==Patching Process==
 +
 +
This space for details of performing this modification through a patch file.

Revision as of 19:46, 26 July 2009

Tasks.png

Introduction

I've made a small modification that changes how new tasks are handled. Ordinarily, new tasks appear at the bottom of the task list. In this view, you need to tap again to enter details like a due date. With this modification when add a task, the details card appears (pictured). At this window you can immediately set the task name, due date, task list, and priority. You're not forced to fill out each of those fields, they're just available. Enter your info, then swipe back and you'll see your new task in the list, or close the new task card (flick up) and the task is saved automatically.

Disclaimer

I've tested this on v1.03 and v1.04 and I haven't had any problems yet. Use at your own risk. I'm not responsible. And make a backup!

Editing Process

Accessing linux is required. These directions assume you have already done so.

1. Mount for rw access:

mount -o remount,rw /


2. Make a backup of the file! Don't be lazy!

cd /usr/palm/applications/com.palm.app.tasks/app/controllers/
cp tasks-assistant.js tasks-assistant.js.bak

3. Then open the file /usr/palm/applications/com.palm.app.tasks/app/controllers/tasks-assistant.js

vi tasks-assistant.js

4. In _newTask: function(previousTask)

Replace line 917 (line 921 in os 1.1):

this.listElement.mojo.focusItem(task);

with this code:

this.state.edit.call(this, index);

5. Also, replace line 940 of the same file (line 944 in os 1.1):

self.listElement.mojo.focusItem(task);

with this code:

self.state.edit.call(self, index);

6. Save and reboot.

mount -o remount,ro /
reboot

Enjoy!

(os 1.1 changes verified by tcurtin on 7/24/09)

Contact Me

Please leave me a note if it works for you: http://www.everythingpre.com/forum/webos-development/new-mod-always-show-new-task-details-21326.html#post106281

//-Tuckmobile//

Patching Process

This space for details of performing this modification through a patch file.