diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 4a4aa45d6..b760affa0 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -291,18 +291,14 @@ class Pref_Prefs extends Handler_Protected { = \Controls\hidden_tag("op", "pref-prefs") ?> = \Controls\hidden_tag("method", "changeemail") ?> -
- @@ -806,26 +793,23 @@ class Pref_Prefs extends Handler_Protected { - evt.preventDefault(); if (this.validate()) { - new Ajax.Request('backend.php', { - parameters: dojo.objectToQuery(this.getValues()), - onComplete: function(transport) { - Notify.info(transport.responseText); - } - }); + Notify.progress('Saving data...', true); + xhrPost("backend.php", this.getValues(), (transport) => { + Notify.info(transport.responseText); + }) }