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

confirm_action should allow the button labels to be customised

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1.1
    • Component/s: Libraries
    • Labels:
      None
    • Testing Instructions:
      Hide

      1. Check a place that currently uses confirm_action. For example clearing all assessments in a workshop. Make sure it sill works.

      2. Once MDL-26165 is integrated, check that the quiz 'are you sure you want to start/submit this attempt' dialogues have customised button labels.

      Show
      1. Check a place that currently uses confirm_action. For example clearing all assessments in a workshop. Make sure it sill works. 2. Once MDL-26165 is integrated, check that the quiz 'are you sure you want to start/submit this attempt' dialogues have customised button labels.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The confirm_action lib/outputactions.php is hard-coded to use button captions Cancel and Yes. This is not always appropriate. The API should be extended to allow custom labels. (For example, MDL-26165 is hard to fix at the moment.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                timhunt Tim Hunt
                Peer reviewer:
                Sam Hemelryk
                Integrator:
                Sam Hemelryk
                Tester:
                Rossiani Wijaya
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11