diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 730d556a5..445d0aadb 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -180,6 +180,8 @@ class Pref_Prefs extends Handler_Protected { WHERE $profile_qpart AND owner_uid = ".$_SESSION["uid"]); initialize_user_prefs($this->link, $_SESSION["uid"], $_SESSION["profile"]); + + echo __("Your preferences are now set to default values."); } function index() { diff --git a/js/prefs.js b/js/prefs.js index b4ecd2584..b1decede5 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -975,13 +975,8 @@ function validatePrefsReset() { new Ajax.Request("backend.php", { parameters: query, onComplete: function(transport) { - var msg = transport.responseText; - if (msg.match("PREFS_THEME_CHANGED")) { - window.location.reload(); - } else { - notify_info(msg); - selectTab(); - } + updatePrefsList(); + notify_info(transport.responseText); } }); }