Skip to content

Commit

Permalink
Version 5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Apr 12, 2024
1 parent da1b985 commit 2af47c4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,7 @@ ChangeLog

settings.user.checkFEuser allows now values greater than 1.

Bugfix for settings.pointsMode 4.
Bugfix for settings.pointsMode 4.

5.0.2:
Bugfix: prevent multiple ajax calls.
4 changes: 3 additions & 1 deletion Documentation/Configuration/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ AJAX*) If you enable AJAX, you should know this:
- **Configure the quiz only by TypoScript**.
You need to set the persistence.storagePid too!

- Only one question per page is possible.

- The AJAX-solution is not supported for the action "show by tag".

- *Important*: the AJAX-call calls an normal action and not an eID-script.
Expand All @@ -137,7 +139,7 @@ AJAX*) If you enable AJAX, you should know this:
you must change this TypoScript value of: "ajaxfpmasterquiz_page.10.pluginName".
Set it to "List" or "Intro" (depending on the selected plugin).

- Saving of user-data at the final page does not work.
- Saving of user-data (at the final page) does not work.

- You have still problems? Then read the chapter "Known problems".

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fp_masterquiz

version 5.0.1
version 5.0.2

TYPO3 extension to create a quiz, poll or test. The participant result will be saved in the DB too and can be deleted automatically via Scheduler.

Expand Down Expand Up @@ -45,4 +45,7 @@ Changes in version 5.0:
- Refactoring with the rector-tool.
- settings.debug=2 is new. If 2 instead of 1, the debug output will be written into a log file.
- settings.user.checkFEuser allows now values greater than 1.
- Bugfix for pointsMode 4.
- Bugfix for pointsMode 4.

Changes in version 5.0.2:
- Bugfix: prevent multiple ajax calls.
11 changes: 11 additions & 0 deletions Resources/Private/Templates/Quiz/Show.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,23 @@
document.addEventListener('DOMContentLoaded', function(){
var form = $('#quiz-form'+ceuid);
var resultContainer = $('#quiz-ajaxCallResult');
var isAjaxSubmitting = false;
var service = {
ajaxCall: function (data) {
if(isAjaxSubmitting) {
//console.log('ajax cancel');
return;
}
isAjaxSubmitting = true;
//console.log('ajax submitting');
$.ajax({
url: '/index.php',
cache: false,
type: ajaxType,
data: data.serialize(),
success: function (result) {
isAjaxSubmitting = false;
//console.log('success submitting false');
// display the AJAX-result and set the JS-variable quizfinal
resultContainer.html(result).show();
<f:render partial="Quiz/CheckFields" arguments="{uidOfCE: uidOfCE}" />
Expand All @@ -168,6 +177,8 @@
}
},
error: function (jqXHR, textStatus, errorThrow) {
isAjaxSubmitting = false;
//console.log('error submitting false');
resultContainer.html('Ajax request - ' + textStatus + ': ' + errorThrow + ' ('+data.serialize()+')').fadeIn('fast');
}
});
Expand Down

0 comments on commit 2af47c4

Please sign in to comment.