5103 Commits

Author SHA1 Message Date
Gordon Bateson
d784021b8d MDL-79863 qtype_ordering: qtype_ordering rename 'answernumbering' to 'numberingstyle' and include this field in import/export of xml/gift formats. 2024-04-04 10:59:29 +08:00
Mahmoud Kassaei
76a6fce839 MDL-79863 qtype_ordering: Qtype_ordering: Numbering for lists (123.., abc...) (#42)
Thanks Mahmoud. Great job!
2024-04-04 10:59:29 +08:00
Gordon Bateson
9935253fea MDL-79863 qtype_ordering: qtype_ordering fix small typo in behat test file 2024-04-04 10:59:29 +08:00
Gordon Bateson
4a70e6211f MDL-79863 qtype_ordering: qtype_ordering fix small typo in language file and optimize logic in form validation 2024-04-04 10:59:28 +08:00
Mahmoud Kassaei
9d3998ecf5 MDL-79863 qtype_ordering: Qtype ordering should not allow duplicatue items (#40)
Thank you Mahmoud Kassaei for your continuing work to improve the Ordering question type
2024-04-04 10:59:28 +08:00
Gordon Bateson
356ad12ad4 MDL-79863 qtype_ordering: * Code checker issues in version.php 2024-04-04 10:59:28 +08:00
Mahmoud Kassaei
09be025919 MDL-79863 qtype_ordering: Ordering codechecker (#39)
* Code checker issues on edit_ordering_form.php

* function question_register_questiontype() not needed in questiontype.php

* Code checker issues in questiontype.php

* Code checker issues in question.php

* Code checker issues in renderer.php

* Code checker issues in version.php
2024-04-04 10:59:28 +08:00
Gordon Bateson
bf48b2f7b3 MDL-79863 qtype_ordering: Ordering cleanup - thanks Mahmoud Kassaei! 2024-04-04 10:59:28 +08:00
M Kassaei
5d9a051d42 MDL-79863 qtype_ordering: There is no need for legacy 'default_questionetype' 2024-04-04 10:59:28 +08:00
M Kassaei
9238005a73 MDL-79863 qtype_ordering: lang-file is sorted 2024-04-04 10:59:28 +08:00
M Kassaei
ee4edb506b MDL-79863 qtype_ordering: method_exists() not needed anymore in edit_ordering_form.php 2024-04-04 10:59:28 +08:00
M Kassaei
3ca76335a6 MDL-79863 qtype_ordering: Install.xml is loaded into XMLDB and then saved again 2024-04-04 10:59:28 +08:00
Gordon Bateson
8c7c9d055a MDL-79863 qtype_ordering: qtype_ordering remove deprecated jquery folder and amd/*.js files 2024-04-04 10:59:28 +08:00
Tim Hunt
d812ee087f MDL-79863 qtype_ordering: Fix a bug with keyboard control with multiple questions per page 2024-04-04 10:59:28 +08:00
Tim Hunt
393de4b871 MDL-79863 qtype_ordering: Show a dotted border around the entire list if the question is active 2024-04-04 10:59:28 +08:00
Tim Hunt
d876a38973 MDL-79863 qtype_ordering: Remove some unused code. 2024-04-04 10:59:28 +08:00
Tim Hunt
7eff0c7fdb MDL-79863 qtype_ordering: Add travis config for Moodle 3.6 2024-04-04 10:59:27 +08:00
Tim Hunt
59d28a856b MDL-79863 qtype_ordering: Ensure the new JavaScript works with any Moodle 2.9 or later
That is, since js_call_amd existed.
2024-04-04 10:59:27 +08:00
M Kassaei
0fdf194fab MDL-79863 qtype_ordering: Ordering qtype: rewrite JavaScript and add keyboard interaction
* This rewrite was mainly to add keyboard support, which is important
for accessibility.
* At the same time, the CSS was changed, to make the question appear
visually much more like the other core drag-drop question types.
* The new drag-drop code is based on the same underlying libraries that
the code drag-drop question types have been using since Moodle 3.6
* Unfortunately, so far we have only been able to make this work back to
Moodle 2.9.
2024-04-04 10:59:27 +08:00
Gordon Bateson
e885659edf MDL-79863 qtype_ordering: qtype_ordering add further details of contribution by Tim Hunt and Mahmoud Kassei of OU 2024-04-04 10:59:27 +08:00
Gordon Bateson
912e5646e9 MDL-79863 qtype_ordering: qtype/ordering add showgrading field to backup file 2024-04-04 10:59:27 +08:00
Gordon Bateson
52f064a5b6 MDL-79863 qtype_ordering: qtype/ordering (readme.txt) added credits for recent improvements: Thanks to Tim Hunt, Mahmoud Kassaei, and Dominique Bauer 2024-04-04 10:59:27 +08:00
Gordon Bateson
5aab59423e MDL-79863 qtype_ordering: qtype/ordering fix Github issue #36: remove contenteditable from LI element, and instead attach to ancestor element in DOM 2024-04-04 10:59:27 +08:00
Gordon Bateson
ce8a32b5b4 MDL-79863 qtype_ordering: qtype/ordering fix Github issue #36: draggable items become stuck to cursor when logged as student in Boost theme on Moodle 3.6 2024-04-04 10:59:27 +08:00
Gordon Bateson
50bc2c0f5d MDL-79863 qtype_ordering: qtype/ordering improve logic and of code to get_subset and code to add repeated elements to form 2024-04-04 10:59:27 +08:00
Gordon Bateson
33b360975b MDL-79863 qtype_ordering: qtype/ordering fix Github issue #35: Clicking Add to add items more than once without saving the question in between has incorrect and unwanted behavior 2024-04-04 10:59:27 +08:00
Gordon Bateson
2917f5a895 MDL-79863 qtype_ordering: qtype/ordering optimize code and comments in loop to detect ordered subsets 2024-04-04 10:59:27 +08:00
Tim Hunt
ae2bd4dc93 MDL-79863 qtype_ordering: Unit tests of the question as a whole 2024-04-04 10:59:27 +08:00
Gordon Bateson
ea8708fe04 MDL-79863 qtype_ordering: qtype_ordering fix detection of longest ordered/contiguous subset grading type 2024-04-04 10:59:26 +08:00
Gordon Bateson
2e473e6273 MDL-79863 qtype_ordering: qtype/ordering fix detection of Longest ordered/contiguous subset where two or more such subsets exist 2024-04-04 10:59:26 +08:00
Tim Hunt
79122279eb MDL-79863 qtype_ordering: Test against more Moodle and PHP versions on Travis 2024-04-04 10:59:26 +08:00
Tim Hunt
9f6e662d30 MDL-79863 qtype_ordering: Implement response analysis for the quiz Statistics report 2024-04-04 10:59:26 +08:00
M Kassaei
c231dab5cf MDL-79863 qtype_ordering: PHP unit tests for the key methods in the question class #296740
This includes tests for all the grading types, and the other key
methods.
2024-04-04 10:59:26 +08:00
Gordon Bateson
7cabd58054 MDL-79863 qtype_ordering: qtype/ordering fix indexing of items when "Item selection type" is "Select a contiguous subset of items". The incorrect indexing resulted in less than the exptected number of items being displayed. 2024-04-04 10:59:26 +08:00
Gordon Bateson
01c8bab559 MDL-79863 qtype_ordering: qtype/ordering update version.php for recent BEHAT modifications 2024-04-04 10:59:26 +08:00
Gordon Bateson
fe5c789b10 MDL-79863 qtype_ordering: qtype/ordering add legacy_polyfill to privacy/provider.php 2024-04-04 10:59:26 +08:00
ewallah
bed7d48b1b MDL-79863 qtype_ordering: Add language string 2024-04-04 10:59:26 +08:00
ewallah
af2de4e269 MDL-79863 qtype_ordering: Create privacy provider 2024-04-04 10:59:26 +08:00
Tim Hunt
9f65077013 MDL-79863 qtype_ordering: SVG version of the icon 2024-04-04 10:59:26 +08:00
Tim Hunt
e8f277b03c MDL-79863 qtype_ordering: Set up Travis-CI integration 2024-04-04 10:59:26 +08:00
M Kassaei
e3fd1ad067 MDL-79863 qtype_ordering: Ordering qtype: write some Behat tests 2024-04-04 10:59:25 +08:00
Tim Hunt
2020628f6d MDL-79863 qtype_ordering: Implement data generator code for creating test questions 2024-04-04 10:59:25 +08:00
Gordon Bateson
5a8b952f34 MDL-79863 qtype_ordering: qtype/ordering added new setting to specify number of new draggable items to be added to a question 2024-04-04 10:59:25 +08:00
Gordon Bateson
b307db44c8 MDL-79863 qtype_ordering: qtype/ordering ensure get_possible_responses does not fail even if there is no correct response 2024-04-04 10:59:25 +08:00
Gordon Bateson
32559a356c MDL-79863 qtype_ordering: qtype_ordering add standard syntax for ::name:: in improve export/import of GIFT format 2024-04-04 10:59:25 +08:00
Gordon Bateson
35551217e0 MDL-79863 qtype_ordering: qtype_ordering fix import of GIFT text files 2024-04-04 10:59:25 +08:00
Gordon Bateson
6f79ea9708 MDL-79863 qtype_ordering: qtype_ordering improvements for compatability with AMD in Moodle >= 2.9. Many thanks to Jakob Ackermann (github.com/jacac) 2024-04-04 10:59:25 +08:00
Gordon Bateson
489c938b85 MDL-79863 qtype_ordering: qtype/ordering add AMD folder and files cor compatability with Moodle >= 2.9. Many thanks to Jakob Ackermann (github.com/jacac) 2024-04-04 10:59:25 +08:00
Gordon Bateson
c40caa6a09 MDL-79863 qtype_ordering: qtype_ordering improvements for compatability with AMD in Moodle >= 2.9. Many thanks to Jakob Ackermann (github.com/jacac) 2024-04-04 10:59:25 +08:00
Gordon Bateson
e72e1a6078 MDL-79863 qtype_ordering: qtype_ordering recognize RELATIVE_TO_CORRECT in gift import file 2024-04-04 10:59:25 +08:00