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

As-you-type auto-selection on the assign roles screen. With patch.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.9.2
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      I've just been adding students to new courses by name and got annoyed at waiting for the server to search all the time, so I've written a small bit of javascript to automatically select the first matching name starting with the search string as the user types. This allows the first name to be partially typed and 'Add' to be clicked without scrolling or waiting for a smaller list.

      Patch (roles_assign_html.txt) is against Moodle 1.9.2.+ (20080901) - apply it to /admin/roles/assign.html and add search.js to the /admin/roles directory. Patched assign.html is included too if you want to just overwrite the file.

        Attachments

        1. assign_patch.txt
          2 kB
        2. assign.html
          6 kB
        3. search.js
          1 kB

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                mattgibson Matt Gibson
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: