From 27a94efe3da9a057008b07232e6558bece8f1280 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sun, 13 Mar 2011 06:26:23 +0000 Subject: [PATCH] * revert to the prev version. --- lib/front/front.class.php | 2 +- www/js/my.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 20e804683c..e704037363 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -703,7 +703,7 @@ EOT; static public function reload($window = 'self') { $js = self::start(); - $js .= "$window.location.reload()"; + $js .= "$window.location.href=$window.location.href"; $js .= self::end(); return $js; } diff --git a/www/js/my.js b/www/js/my.js index d6038eb792..da742c8004 100644 --- a/www/js/my.js +++ b/www/js/my.js @@ -354,7 +354,7 @@ function toggleHelpLink() function selectLang(lang) { $.cookie('lang', lang, {expires:config.cookieLife, path:config.webRoot}); - location.reload(); + location.href = location.href; } /** @@ -366,7 +366,7 @@ function selectLang(lang) function selectTheme(theme) { $.cookie('theme', theme, {expires:config.cookieLife, path:config.webRoot}); - location.reload(); + location.href = location.href; } /**