Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43706

Move question/flags.js to a new question/yui/src/flags/js directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: DEV backlog
    • Component/s: Questions, Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Assuming you have a Moodle course with at least one quiz which at least has two questions.

      1) while attempting the quiz, click on "Flag question", you should see that the navigation panel shows that the question is flaged and the flag icon changes the colour to red and the text changes to "Remove flag".
      2) click on "Finished attempt", so that you can see the question you flaged is still showing falgged in the summay of attempt table.
      3) Go back to the attempt page and click on "Remove flag", so you can see that this work as it used to.

      Show
      Assuming you have a Moodle course with at least one quiz which at least has two questions. 1) while attempting the quiz, click on "Flag question", you should see that the navigation panel shows that the question is flaged and the flag icon changes the colour to red and the text changes to "Remove flag". 2) click on "Finished attempt", so that you can see the question you flaged is still showing falgged in the summay of attempt table. 3) Go back to the attempt page and click on "Remove flag", so you can see that this work as it used to.
    • Affected Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Following actions needs to be taken place.

      1) Moving question/flags.js to a new question/yui/src/flags/js directory
      2) Creating question/yui/src/flags/meta/flags.json file
      3) Creating question/yui/src/flags/build.json file
      4) Replacing $PAGE->requires->js_init_call() with $PAGE->requires->yui_module() in question/engine/lib.php acordingly.
      5) Refactoring initialise_js() static method in question_flags class in question/engine/lib.php
      6) Testing the functionality after new changes.

        Attachments

          Activity

            People

            • Assignee:
              mkassaei Mahmoud Kassaei
              Reporter:
              mkassaei Mahmoud Kassaei
              Peer reviewer:
              Tim Hunt
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: