Active
Project:
Support Timer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 May 2010 at 21:38 UTC
Updated:
21 Oct 2010 at 02:24 UTC
How can I prevent the timer from auto starting?
I would like the time value to be empty by default but the field would be required forcing people to submit a value.
Comments
Comment #1
jeremy commentedIt's not currently possible, marking as a feature request.
Comment #2
NToronto commentedThank you Jeremy.
Comment #3
NToronto commentedHi Jeremy,
Until this feature can be added as an admin configuration option, can you advise on a temporary solution to prevent the timer from auto-starting?
Thanks
Comment #4
NToronto commentedTemporary hack until an admin option is available, but this worked for me:
In support_timer.js I commented out line 15:
In support_timer.module, I commented out the following fields:
Comment #5
nubeli commentedI found a much simpler way to have the timer only start when pressing the button. At the top of the support_timer.js switch the states for the "enabled" and "delayed" variables, such that:
And that's it!
But now it seems like you have to press the Pause button to have it start. It works but it's not really user-friendly. So I made the button text change when clicked. First, in support_timer.module change line 218 to '#value' => t('Start'), such that it looks like this:
And then I inserted a bit of jquery so that the text changes to Pause when clicking the Start button. Starting at line 31 change from:
to:
I think it reverses the logic of the function but it works as advertised so far for me.