mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:35:57 +00:00
fix prefs reset not working properly
This commit is contained in:
@@ -180,6 +180,8 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
WHERE $profile_qpart AND owner_uid = ".$_SESSION["uid"]);
|
WHERE $profile_qpart AND owner_uid = ".$_SESSION["uid"]);
|
||||||
|
|
||||||
initialize_user_prefs($this->link, $_SESSION["uid"], $_SESSION["profile"]);
|
initialize_user_prefs($this->link, $_SESSION["uid"], $_SESSION["profile"]);
|
||||||
|
|
||||||
|
echo __("Your preferences are now set to default values.");
|
||||||
}
|
}
|
||||||
|
|
||||||
function index() {
|
function index() {
|
||||||
|
|||||||
@@ -975,13 +975,8 @@ function validatePrefsReset() {
|
|||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: query,
|
parameters: query,
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
var msg = transport.responseText;
|
updatePrefsList();
|
||||||
if (msg.match("PREFS_THEME_CHANGED")) {
|
notify_info(transport.responseText);
|
||||||
window.location.reload();
|
|
||||||
} else {
|
|
||||||
notify_info(msg);
|
|
||||||
selectTab();
|
|
||||||
}
|
|
||||||
} });
|
} });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user