summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-06-19 12:29:01 +0200
committerAleksander Machniak <alec@alec.pl>2014-06-19 12:29:01 +0200
commitf331daffe197a4a14a5e7e8dc17240f0b69a46d9 (patch)
tree430b0c89879eb534a71f46745d76e792bd60379d
parent1abbb06ee91f1d75acf4638a98bf2fac1398da31 (diff)
Fix preview toggle button (missing iconbutton class after click)
-rw-r--r--skins/larry/mail.css2
-rw-r--r--skins/larry/ui.js10
2 files changed, 7 insertions, 5 deletions
diff --git a/skins/larry/mail.css b/skins/larry/mail.css
index 85da97460..5e2677f2c 100644
--- a/skins/larry/mail.css
+++ b/skins/larry/mail.css
@@ -460,7 +460,7 @@ a.iconbutton.threadmode.selected {
#mailpreviewtoggle {
display: block;
position: absolute;
- top: 6px;
+ top: 7px;
right: 4px;
width: 20px;
height: 18px;
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index c84375051..eb9569feb 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -218,9 +218,11 @@ function rcube_mail_ui()
}
else if (rcmail.env.action == 'list' || !rcmail.env.action) {
var previewframe = $('#mailpreviewframe').is(':visible');
- $('#mailpreviewtoggle').addClass(previewframe ? 'enabled' : 'closed').attr('aria-expanded', previewframe ? 'true' : 'false').click(function(e){ toggle_preview_pane(e); return false });
- $('#maillistmode').addClass(rcmail.env.threading ? '' : 'selected').click(function(e){ switch_view_mode('list'); return false });
- $('#mailthreadmode').addClass(rcmail.env.threading ? 'selected' : '').click(function(e){ switch_view_mode('thread'); return false });
+
+ $('#mailpreviewtoggle').addClass(previewframe ? 'enabled' : 'closed').attr('aria-expanded', previewframe ? 'true' : 'false')
+ .click(function(e) { toggle_preview_pane(e); return false; });
+ $('#maillistmode').addClass(rcmail.env.threading ? '' : 'selected').click(function(e) { switch_view_mode('list'); return false; });
+ $('#mailthreadmode').addClass(rcmail.env.threading ? 'selected' : '').click(function(e) { switch_view_mode('thread'); return false; });
mailviewsplit = new rcube_splitter({ id:'mailviewsplitter', p1:'#mailview-top', p2:'#mailview-bottom',
orientation:'h', relative:true, start:310, min:150, size:12, offset:4 });
@@ -595,7 +597,7 @@ function rcube_mail_ui()
topstyles, bottomstyles, uid;
frame.toggle();
- button.removeClass().toggleClass('enabled closed').attr('aria-expanded', visible ? 'true' : 'false');
+ button.toggleClass('enabled closed').attr('aria-expanded', visible ? 'true' : 'false');
if (visible) {
$('#mailview-top').removeClass('fullheight').css({ bottom:'auto' });