- 🇺🇸United States smustgrave
With there being an effort to get off jquery where possible now, is there a non jquery solution.
- 🇺🇸United States smustgrave
Closed 📌 Implement countdown counter Needs work as duplicate
- 🇺🇸United States smustgrave
Rebased for 7.0.x and fixed up some old and removed some crust.
Will still need a post update hook to add the new config setting
Also during testing noticed that when the time ends the page infinitely refreshes unable to submit as the question has no answer.
- 🇬🇧United Kingdom aaron.ferris
Updated the MR with an update hook to set
timer_format
- Issue was unassigned.
- 🇺🇸United States smustgrave
Thanks! Now just need to figure out what's going on with that infinite refresh
- 🇬🇧United Kingdom aaron.ferris
Can confirm this behaviour, I can see the new JS fires the hidden 'finish' button, but each question type will fail validation.
Pushed a change that will resolve that although im not convinced it's the best way to do so, ive added a new triggering element the timer end JS can use that will limit validation fail.
- Status changed to Needs review
5 months ago 5:11pm 8 August 2024 - Status changed to Needs work
4 months ago 8:37am 9 August 2024 - 🇬🇧United Kingdom aaron.ferris
Setting back to needs work, limit_validation_errors needs an array of elements rather than a boolean.
- Status changed to Needs review
4 months ago 8:42am 9 August 2024 -
smustgrave →
committed 2feaf570 on 7.0.x
Resolve #3157376 "Countdown js"
-
smustgrave →
committed 2feaf570 on 7.0.x
- Status changed to Fixed
4 months ago 5:47pm 9 August 2024 - 🇺🇸United States smustgrave
Nice find @aaron.ferris.
I'm sure more issues will come out of this but initial testing appears to be working so going to merge.
Thanks everyone!
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇫🇮Finland anaconda777
Hi,
Sorry but I am not able to patch current quiz 7.01 with any of these patches
Tried for example this:"drupal/quiz": {
"quiz timer":" https://www.drupal.org/files/issues/2020-07-09/3157376-04.patch → ",
},Wont apply, or is it still dev version which to use?