From 3940ba65be1993c4a2c2be4599f53d3018228783 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 30 Jun 2010 08:40:39 +0000 Subject: - Resize editor after switching to html mode - create toggle-editor command in app.js, to make possible binding to this command - Code cleanup in rcmail_ui (moved compose-related functions into rcmail_ui) --- skins/default/functions.js | 258 ++++++++++++++++++----------------- skins/default/templates/compose.html | 14 +- 2 files changed, 137 insertions(+), 135 deletions(-) (limited to 'skins') diff --git a/skins/default/functions.js b/skins/default/functions.js index 3a97448ac..258742e69 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -22,129 +22,7 @@ function rcube_show_advanced(visible) } /** - * Mail Composing - */ - -function rcmail_show_header_form(id) -{ - var row, s, - link = document.getElementById(id + '-link'); - - if ((s = rcmail_next_sibling(link))) - s.style.display = 'none'; - else if ((s = rcmail_prev_sibling(link))) - s.style.display = 'none'; - - link.style.display = 'none'; - - if ((row = document.getElementById('compose-' + id))) { - var div = document.getElementById('compose-div'), - headers_div = document.getElementById('compose-headers-div'); - row.style.display = (document.all && !window.opera) ? 'block' : 'table-row'; - div.style.top = (parseInt(headers_div.offsetHeight, 10) + 1) + 'px'; - rcmail_resize_compose_body(); - } - - return false; -} - -function rcmail_hide_header_form(id) -{ - var row, ns, - link = document.getElementById(id + '-link'), - parent = link.parentNode, - links = parent.getElementsByTagName('a'); - - link.style.display = ''; - - for (var i=0; i - + @@ -55,11 +55,11 @@ - + | - + | - + @@ -68,7 +68,7 @@ - + @@ -76,7 +76,7 @@ - + @@ -84,7 +84,7 @@ - + -- cgit v1.2.3