Display a warning if popup window was blocked (#1489618)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Display a warning if popup window was blocked (#1489618) |
| | | - Remove (was: ...) from message subject on reply (#1489375) |
| | | - Update to TinyMCE 4.0 (#1489057) |
| | | - Enable autolink plugin in TinyMCE (#1488845) |
| | |
| | | } |
| | | |
| | | // add some basic labels to client |
| | | $this->output->add_label('loading', 'servererror', 'connerror', 'requesttimedout', 'refreshing'); |
| | | $this->output->add_label('loading', 'servererror', 'connerror', 'requesttimedout', |
| | | 'refreshing', 'windowopenerror'); |
| | | |
| | | return $this->output; |
| | | } |
| | |
| | | form.target = win.name; |
| | | form.submit(); |
| | | } |
| | | else { |
| | | // this.display_message(this.get_label('windowopenerror'), 'error'); |
| | | } |
| | | } |
| | | else { |
| | | this.open_window(this.env.permaurl, true); |
| | |
| | | +(toolbar ? ',toolbar=yes,menubar=yes,status=yes' : ',toolbar=no,menubar=no,status=no')); |
| | | } |
| | | |
| | | // detect popup blocker (#1489618) |
| | | // don't care this might not work with all browsers |
| | | if (!extwin || extwin.closed) { |
| | | this.display_message(this.get_label('windowopenerror'), 'warning'); |
| | | return; |
| | | } |
| | | |
| | | // write loading... message to empty windows |
| | | if (!url && extwin.document) { |
| | | extwin.document.write('<html><body>' + this.get_label('loading') + '</body></html>'); |
| | |
| | | $messages['servererrormsg'] = 'Server Error: $msg'; |
| | | $messages['connerror'] = 'Connection Error (Failed to reach the server)!'; |
| | | $messages['dberror'] = 'Database Error!'; |
| | | $messages['windowopenerror'] = 'The popup window was blocked!'; |
| | | $messages['requesttimedout'] = 'Request timed out'; |
| | | $messages['errorreadonly'] = 'Unable to perform operation. Folder is read-only.'; |
| | | $messages['errornoperm'] = 'Unable to perform operation. Permission denied.'; |