| | |
| | | |
| | | // don't use $(window).resize() due to some unwanted side-effects |
| | | window.onresize = resize; |
| | | resize(); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') { |
| | | layout_composeview(); |
| | | } |
| | | |
| | | // make iframe footer buttons float if scrolling is active |
| | | $('body.iframe .footerleft').each(function(){ |
| | | var footer = $(this), |
| | | 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'); |
| | | } |
| | | }) |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | function message_displayed(p) |
| | | { |
| | | // show a popup dialog on errors |
| | | if (p.type == 'error') { |
| | | if (p.type == 'error' && rcmail.env.task != 'login') { |
| | | if (!me.messagedialog) { |
| | | me.messagedialog = $('<div>').addClass('popupdialog'); |
| | | } |