From bf8783388413a9f19b5b8ae4b998d10b93bf4617 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 5 Apr 2013 07:52:50 +0400 Subject: fix prefs reset not working properly --- js/prefs.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'js/prefs.js') 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); } }); } -- cgit v1.2.3