Reload settings page if language was changed
| | |
| | | this.set_busy(false); |
| | | 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; |
| | | }; |
| | | |
| | | |
| | | /*********************************************************/ |
| | |
| | | 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 |