Skip to content

Commit

Permalink
Fixed issue #18074: Exit and clear survey doesn't work (#2397)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed May 18, 2022
1 parent 8bae825 commit eaf351e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/packages/limesurvey/survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ function resetQuestionTimers(sid) {
return;
}
// We only care about the final submit, not normal forward/backward navigation.
var submitter = $(e.originalEvent.submitter);
if (submitter.attr('value') != 'movesubmit') {
var submitter = e.originalEvent ? $(e.originalEvent.submitter) : null;
if (!submitter || submitter.attr('value') != 'movesubmit') {
return;
}
// Still, we disable all submit buttons to make sure the "back" button is not
Expand Down

0 comments on commit eaf351e

Please sign in to comment.