| | |
| | | if (get_pref('previewheaders') == '1') { |
| | | toggle_preview_headers(); |
| | | } |
| | | |
| | | if (rcmail.env.action == 'show') { |
| | | $('#messagecontent').focus() |
| | | } |
| | | } |
| | | else if (rcmail.env.action == 'compose') { |
| | | rcmail.addEventListener('aftersend-attachment', show_uploadform) |
| | |
| | | $('#mailthreadmode').addClass(rcmail.env.threading ? 'selected' : '').click(function(e) { switch_view_mode('thread'); return false; }); |
| | | |
| | | mailviewsplit = new rcube_splitter({ id:'mailviewsplitter', p1:'#mailview-top', p2:'#mailview-bottom', |
| | | orientation:'h', relative:true, start:310, min:150, size:12, offset:4 }); |
| | | orientation:'h', relative:true, start:276, min:150, size:12, offset:4 }); |
| | | if (previewframe) |
| | | mailviewsplit.init(); |
| | | |
| | |
| | | else if (rcmail.env.task == 'addressbook') { |
| | | rcmail.addEventListener('afterupload-photo', show_uploadform) |
| | | .addEventListener('beforepushgroup', push_contactgroup) |
| | | .addEventListener('beforepopgroup', pop_contactgroup); |
| | | .addEventListener('beforepopgroup', pop_contactgroup) |
| | | .addEventListener('menu-open', menu_toggle) |
| | | .addEventListener('menu-close', menu_toggle); |
| | | |
| | | if (rcmail.env.action == '') { |
| | | new rcube_splitter({ id:'addressviewsplitterd', p1:'#addressview-left', p2:'#addressview-right', |