LimeSurvey: 3.x-LTS 54ed33fd

Author Committer Branch Timestamp Parent
gabrieljenik GitHub 3.x-LTS 2020-09-29 08:24:50 3.x-LTS 088239dc
Affected Issues  16634: Timer not getting reset after completion of the survey (running multiple surveys on the same browser)
Changeset

Fixed issue 16634: Timer not getting reset after completion of the survey (running multiple surveys on the same browser) (#1590)

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/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