| | |
| | | */ |
| | | function resize() |
| | | { |
| | | if (rcmail.env.task == 'mail' && (rcmail.env.action == 'show' || rcmail.env.action == 'preview')) { |
| | | if (rcmail.env.task == 'mail') { |
| | | if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') |
| | | layout_messageview(); |
| | | } |
| | | if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') { |
| | | else if (rcmail.env.action == 'compose') |
| | | layout_composeview(); |
| | | } |
| | | |
| | |
| | | body = $(document.body), |
| | | floating = footer.hasClass('floating'), |
| | | overflow = body.outerHeight(true) > $(window).height(); |
| | | |
| | | if (overflow != floating) { |
| | | var action = overflow ? 'addClass' : 'removeClass'; |
| | | footer[action]('floating'); |
| | | body[action]('floatingbuttons'); |
| | | } |
| | | }) |
| | | |
| | | }); |
| | | } |
| | | |
| | | /** |
| | |
| | | // Select/unselect tab |
| | | $('#tab'+idx).toggleClass('selected', idx==index); |
| | | }); |
| | | |
| | | resize(); |
| | | } |
| | | |
| | | /** |