From 4be86f3a3779ef86be30e8451750130569d2cacd Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 9 Mar 2012 13:23:24 +0000 Subject: - Unified (single) spellchecker button --- skins/default/common.css | 14 +++++++++- skins/default/functions.js | 38 +++++++++++++++++++++++++++ skins/default/images/messageicons.gif | Bin 1998 -> 2030 bytes skins/default/images/messageicons.png | Bin 4062 -> 4098 bytes skins/default/mail.css | 11 ++++++++ skins/default/templates/compose.html | 12 +++++++-- skins/larry/mail.css | 8 ++---- skins/larry/styles.css | 10 ++++++-- skins/larry/templates/compose.html | 12 +++++++-- skins/larry/ui.js | 47 ++++++++++++++++++++++++++++++---- 10 files changed, 134 insertions(+), 18 deletions(-) (limited to 'skins') diff --git a/skins/default/common.css b/skins/default/common.css index 31ecbe905..57fc1275a 100644 --- a/skins/default/common.css +++ b/skins/default/common.css @@ -495,6 +495,7 @@ body.iframe .boxtitle padding: 2px 10px; text-decoration: none; min-height: 14px; + background: transparent; } .popupmenu li a.active, @@ -504,7 +505,8 @@ body.iframe .boxtitle color: #333; } -.popupmenu li a.active:hover +.popupmenu li a.active:hover, +.popupmenu.selectable li a.selected:hover { color: #fff; background-color: #c00; @@ -515,6 +517,16 @@ body.iframe .boxtitle float: left; } +.popupmenu.selectable li a.selected +{ + background: url(images/messageicons.png) 2px -372px no-repeat; +} + +.popupmenu.selectable li a +{ + padding-left: 20px; +} + .darkbg { background-color: #F2F2F2 !important; diff --git a/skins/default/functions.js b/skins/default/functions.js index aab386b5e..fb7a05d4b 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -102,6 +102,7 @@ function rcube_mail_ui() groupmenu: {id:'groupoptionsmenu', above:1}, mailboxmenu: {id:'mailboxoptionsmenu', above:1}, composemenu: {id:'composeoptionsmenu', editable:1, overlap:1}, + spellmenu: {id:'spellmenu'}, // toggle: #1486823, #1486930 uploadmenu: {id:'attachment-form', editable:1, above:1, toggle:!bw.ie&&!bw.linux }, uploadform: {id:'upload-form', editable:1, toggle:!bw.ie&&!bw.linux } @@ -351,6 +352,43 @@ save_listmenu: function() rcmail.set_list_options(cols, sort, ord, thread == 'thread' ? 1 : 0); }, +spellmenu: function(show) +{ + var link, li, + lang = rcmail.spellcheck_lang(), + menu = this.popups.spellmenu.obj, + ul = $('ul', menu); + + if (!ul.length) { + ul = $('