Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
AS shown in the image below, when the next button is clicked, the next question appears without reloading the page - as expected with ajax. However, this causes the time-left row to double. The more the next button is clicked, the more the row increases.
enabled modules:
Quiz 7.x-5.1
Jquery countdown 7.x-1.1
Comment | File | Size | Author |
---|---|---|---|
#2 | ajax_quiz_causes-2867169-2.patch | 2.32 KB | djdevin |
| |||
error.png | 17.06 KB | adigunsherif |
Comments
Comment #2
djdevinHere is a patch. This moves the Quiz countdown div out of the area that is replaced by AHAH, so it will not duplicate on each question take.
Comment #3
adigunsherif CreditAttribution: adigunsherif as a volunteer commentedPerfect! Patch #2 works. Thank you. No more duplicate.
Comment #4
djdevinGreat, thanks for reporting. Fixed!
Comment #7
joenan CreditAttribution: joenan as a volunteer and commentedPlease how did you fix yours? I checked the patch file but it didnt work for me. Can you please help me and upload the already complete quiz.module file you have patched? Sorry to ask for this. I am new to drupal and hooked up with multiple display of timer after clicking next or previous button
Comment #8
joenan CreditAttribution: joenan as a volunteer and commentedThe patch didn't work for me, but I was able to resolve the issue by commenting on this code inside this function in quiz.theme.inc as shown below.
Comment #9
djdevinHi,
You can either apply the patch, or you can update to Quiz 7.x-5.x-dev which will contain the fix.
Comment #10
joenan CreditAttribution: joenan as a volunteer and commentedOk. thanks the problem has now been solved.