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

Implement AMD module for user preference manipulation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Currently to update a user preference from Javascript requires using the M.util.set_user_preference() call. 

      This uses a ajax script that returns "OK" if the update was sent (but not if it was saved) and also returns HTML if the request fails for any reason.

      This is not very ajax-y.

      I propose a new core/preferences AMD module that will at least provide a matching set implementation.

        Attachments

          Activity

            People

            • Assignee:
              mhughes2k Michael Hughes
              Reporter:
              mhughes2k Michael Hughes
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: