| | |
| | | parent.rcmail.env.frame_lock = null; |
| | | } |
| | | |
| | | // Makes that reference to document.activeElement do not throw |
| | | // "unspecified error" in IE9 (#1489008) |
| | | if (this.env.framed && bw.ie) |
| | | document.documentElement.focus(); |
| | | |
| | | // enable general commands |
| | | this.enable_command('close', 'logout', 'mail', 'addressbook', 'settings', 'save-pref', |
| | | 'compose', 'undo', 'about', 'switch-task', 'menu-open', 'menu-save', true); |
| | |
| | | return 1; |
| | | } |
| | | |
| | | // this will detect any pdf plugin including PDF.js in Firefox |
| | | var obj = document.createElement('OBJECT'); |
| | | obj.onload = function() { rcmail.env.browser_capabilities.pdf = 1; }; |
| | | obj.onerror = function() { rcmail.env.browser_capabilities.pdf = 0; }; |
| | | obj.style.display = 'none'; |
| | | obj.type = 'application/pdf'; |
| | | obj.data = 'program/resources/blank.pdf'; |
| | | document.body.appendChild(obj); |
| | | |
| | | return 0; |
| | | }; |
| | | |