@ -1215,6 +1215,16 @@ function rcube_webmail()
this.display_message('Request timed out!', 'error');
};
this.reload = function(delay)
{
if (this.env.framed && parent.rcmail)
parent.rcmail.reload(delay);
else if (delay)
window.setTimeout(function(){ rcmail.reload(); }, delay);
else if (window.location)
location.href = this.env.comm_path;
/*********************************************************/
/********* event handling methods *********/
@ -102,8 +102,9 @@ switch ($CURR_SECTION)
case 'general':
// switch UI language
if (isset($_POST['_language'])) {
if (isset($_POST['_language']) && $a_user_prefs['language'] != $_SESSION['language']) {
$RCMAIL->load_language($a_user_prefs['language']);
$OUTPUT->command('reload', 500);
}
// switch skin