| | |
| | | // @license http://creativecommons.org/publicdomain/zero/1.0/legalcode CC0 |
| | | |
| | | /** |
| | | * Roundcube functions for default skin interface |
| | | * |
| | |
| | | * License. It is allowed to copy, distribute, transmit and to adapt the work |
| | | * by keeping credits to the original autors in the README file. |
| | | * See http://creativecommons.org/licenses/by-sa/3.0/ for details. |
| | | * |
| | | * @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0 |
| | | */ |
| | | |
| | | function rcube_mail_ui() |
| | |
| | | } |
| | | else if (rcmail.env.action == 'compose') { |
| | | rcmail.addEventListener('aftersend-attachment', show_uploadform) |
| | | .addEventListener('add-recipient', function(p){ show_header_row(p.field, true); }) |
| | | .addEventListener('aftertoggle-editor', function(e){ |
| | | .addEventListener('aftertoggle-editor', function(e) { |
| | | window.setTimeout(function(){ layout_composeview() }, 200); |
| | | if (e && e.mode) |
| | | $("select[name='editorSelector']").val(e.mode); |
| | | }) |
| | | .addEventListener('compose-encrypted', function(e) { |
| | | $("select[name='editorSelector']").prop('disabled', e.active); |
| | | $('a.button.attach, a.button.responses')[(e.active?'addClass':'removeClass')]('disabled'); |
| | | $('#responseslist a.insertresponse')[(e.active?'removeClass':'addClass')]('active'); |
| | | }); |
| | | |
| | | // Show input elements with non-empty value |
| | |
| | | orientation:'h', relative:true, start:310, min:150, size:12, offset:4 }); |
| | | if (previewframe) |
| | | mailviewsplit.init(); |
| | | |
| | | rcmail.init_pagejumper('#pagejumper'); |
| | | |
| | | rcmail.addEventListener('setquota', update_quota) |
| | | .addEventListener('enable-command', enable_command) |
| | |
| | | $('div.rightcol').hide().attr('aria-hidden', 'true'); |
| | | $('div.leftcol').css('margin-right', '0'); |
| | | } |
| | | |
| | | var mvlpe = $('#messagebody.mailvelope'); |
| | | if (mvlpe.length) { |
| | | var h = $('#messagecontent').length ? |
| | | $('#messagecontent').height() - 16 : |
| | | $(window).height() - mvlpe.offset().top - 10; |
| | | mvlpe.height(h); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | y -= step; |
| | | |
| | | element.css('background-position', '0 -' + y + 'px'); |
| | | element.attr('class', 'countdisplay p' + (Math.round(p.percent / 10) * 10)); |
| | | |
| | | if (p.table) { |
| | | if (!menu.length) |
| | |
| | | return; |
| | | } |
| | | |
| | | // do nothing if mailvelope editor is active |
| | | if (rcmail.mailvelope_editor) |
| | | return; |
| | | |
| | | // add icons to clone file input field |
| | | if (rcmail.env.action == 'compose' && !$dialog.data('extended')) { |
| | | $('<a>') |