-
Improvement
-
Resolution: Fixed
-
Minor
-
3.5, 4.0.8
-
MOODLE_35_STABLE, MOODLE_400_STABLE
-
MOODLE_403_STABLE
-
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.