diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-01-28 20:25:05 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-01-28 20:25:05 +0100 |
commit | 6782fe1fd7d3230350153ba307dd5d49b9670604 (patch) | |
tree | 070fe47f575e4ef74e914471e5033b5451e9d083 /skins/classic/functions.js | |
parent | b4a30ac84f9f6267f91f7d2d93462133cd772305 (diff) | |
parent | 0f4022d54f12fed14c25bc4d78779494b86c4fcc (diff) |
Merge branch 'release-0.9' of github.com:roundcube/roundcubemail into release-0.9
Diffstat (limited to 'skins/classic/functions.js')
-rw-r--r-- | skins/classic/functions.js | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/skins/classic/functions.js b/skins/classic/functions.js index 1742150f3..ee68ee729 100644 --- a/skins/classic/functions.js +++ b/skins/classic/functions.js @@ -355,7 +355,7 @@ spellmenu: function(show) for (i in rcmail.env.spell_langs) { li = $('<li>'); - link = $('<a href="#">').text(rcmail.env.spell_langs[i]) + link = $('<a href="#"></a>').text(rcmail.env.spell_langs[i]) .addClass('active').data('lang', i) .click(function() { rcmail.spellcheck_lang_set($(this).data('lang')); @@ -491,17 +491,23 @@ init_compose_form: function() div.style.top = (parseInt(headers_div.offsetHeight, 10) + 3) + 'px'; $(window).resize(); + + // contacts search submit + $('#quicksearchbox').keydown(function(e) { + if (rcube_event.get_keycode(e) == 13) + rcmail.command('search'); + }); }, resize_compose_body: function() { - var div = $('#compose-div .boxlistcontent'), w = div.width(), h = div.height(); - w -= 8; // 2 x 3px padding + 2 x 1px border - h -= 4; + var div = $('#compose-div .boxlistcontent'), + w = div.width() - 2, h = div.height(), + x = bw.ie || bw.opera ? 4 : 0; - $('#compose-body_tbl').width((w+6)+'px').height(''); - $('#compose-body_ifr').width((w+6)+'px').height((h-54)+'px'); - $('#compose-body').width(w+'px').height(h+'px'); + $('#compose-body_tbl').width((w+3)+'px').height(''); + $('#compose-body_ifr').width((w+3)+'px').height((h-54)+'px'); + $('#compose-body').width((w-x)+'px').height(h+'px'); $('#googie_edit_layer').height(h+'px'); }, |