Closed (fixed)
Project:
Comment Timer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2013 at 13:04 UTC
Updated:
19 Jan 2015 at 06:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yce commentedAttaching patch.
Comment #2
yce commentedFixed comment typo.
Comment #3
yce commentedCreated a patch for the Drupal 7 version too.
Comment #4
boobaaLooks good; please remove the
console.log()call (and debug cruft alike), and please add some comments describing how does this new approach work.Comment #5
yce commentedI've removed the console.log call, sorry about that.
This approach will still update the clock in every second but instead of incrementing a value per secound, it calculates the elapsed time between the two counter() function calls. This is needed because the JS itself not always run in each second, sometimes it is stopped for more than one second.
The elapsed time itself is stored in the elapsedSeconds variable.
Comment #6
yce commentedFixed the d6 JS patch, it is now no longer looses the edited time.
Comment #7
boobaaPlease add some more comments where indicated.
Comment #8
yce commentedAdded comments where you indicated.
Comment #10
boobaaThanks, committed.