LimeSurvey: master 89f54caf

Author Committer Branch Timestamp Parent
gabrieljenik GitHub master 2020-09-29 08:25:13 master 3e596fbc
Affected Issues  16635: Timer not working when survey is active (when executing the survey multiple times in the same browser/tab)
Changeset

Fixed issue 16635: Timer not working when survey is active (when executing the survey multiple times in the same browser/tab) (#1592)

Each timer registers itself in a local storage item identified by the Survey ID.
This is used by the reset function to know which timers belong to the survey and are to be reset.
The reset method was replaced by a function (in survey.js instead of timer.js) that reset all timers for a given survey.
Also reviewed the reset method for preview mode.

mod - application/controllers/survey/index.php Diff File
mod - application/helpers/frontend_helper.php Diff File
mod - application/helpers/qanda_helper.php Diff File
mod - application/models/QuestionBaseRenderer.php Diff File
mod - application/views/survey/questions/question_timer/timer_footer.php Diff File
mod - assets/packages/limesurvey/survey.js Diff File
mod - assets/packages/questions/timer/package-lock.json Diff File
mod - assets/packages/questions/timer/src/main.js Diff File
mod - assets/packages/questions/timer/src/timeclass.js Diff File
mod - assets/packages/questions/timer/timer.js Diff File
mod - assets/packages/questions/timer/timer.min.js Diff File