Difference between revisions of "Patch Clock Change Alarm Button Order"

From WebOS Internals
Jump to navigation Jump to search
Line 3: Line 3:
 
Simply swap lines 15 and 16 to put the snooze button on top.
 
Simply swap lines 15 and 16 to put the snooze button on top.
  
Second we will change the alarm duration.  It is located at lines 379 and 381 of /usr/palm/applications/com.palm.app.clock/app/models/alarm.js
+
Second we will change the alarm duration.  It is located at lines 456 and 458 of /usr/palm/applications/com.palm.app.clock/app/models/alarm.js
  
 
The default times are below :
 
The default times are below :
  
  Alarm.kAlarmSnoozeDuration = "00:05:00";
+
  Alarm.kAlarmSnoozeDuration = "00:10:00";
 
  Alarm.kAlarmSnoozeInterruptedDuration = "00:05:00";
 
  Alarm.kAlarmSnoozeInterruptedDuration = "00:05:00";
  
 +
Just change the time durations.
 
Reboot
 
Reboot
 
That's all!
 
That's all!
 
Thanks to optik678 for the alarm clock modification.
 
Thanks to optik678 for the alarm clock modification.
 +
Updated by ShaneM 31-Jul-09 (1.1 OK)

Revision as of 15:18, 31 July 2009

First we change the button order. The file containing the look of the alarm alert is /usr/palm/applications/com.palm.app.clock/app/views/ring/ring-scene.html

Simply swap lines 15 and 16 to put the snooze button on top.

Second we will change the alarm duration. It is located at lines 456 and 458 of /usr/palm/applications/com.palm.app.clock/app/models/alarm.js

The default times are below :

Alarm.kAlarmSnoozeDuration = "00:10:00";
Alarm.kAlarmSnoozeInterruptedDuration = "00:05:00";

Just change the time durations. Reboot That's all! Thanks to optik678 for the alarm clock modification. Updated by ShaneM 31-Jul-09 (1.1 OK)