Skip to content
Snippets Groups Projects
Commit 21d7b022 authored by Sivaji Ganesh Jojodae's avatar Sivaji Ganesh Jojodae
Browse files

Fix #487004 The 'time up!' alert box pops up twice when time runs out by darktygur.

parent a9f91706
No related branches found
No related tags found
No related merge requests found
......@@ -1197,7 +1197,7 @@ function quiz_take_quiz($quiz) {
// There is still time left, so let's go ahead and insert the countdown javascript.
if (function_exists('jquery_countdown_add') && variable_get('quiz_has_timer', 1)) {
jquery_countdown_add('.countdown', array('until' => $time, 'onExpiry' => 'finished'));
drupal_add_js('function finished() { alert("time up!"); window.location = window.location.href; }', 'inline');
drupal_add_js('function finished() { window.location = window.location.href; }', 'inline');
//window.location.reload() method doesn't works here.
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment