mail: mark currently loaded mail

This commit is contained in:
Frédéric Péters 2015-07-07 15:26:42 +02:00
parent 1521ee6372
commit 0cd7d1e39a
2 changed files with 7 additions and 0 deletions

View File

@ -67,10 +67,15 @@ div#content .cell.document ul {
div#content .cell.document ul li {
border-bottom: 1px solid #dddddd;
border-left: 5px solid transparent;
padding: 1ex;
cursor: pointer;
}
div#content .cell.document ul li.active {
border-left-color: #ddd;
}
div#content .cell.document ul li:hover {
background: #f0f0f0;
}

View File

@ -2,5 +2,7 @@ $(function() {
$('.mails ul li[data-pdf-href]').on('click', function() {
$('#pdf-viewer')[0].contentWindow.postMessage($(this).data('pdf-href'),
window.location.protocol + '//' + window.location.host);
$(this).parent().find('li').removeClass('active');
$(this).addClass('active');
});
});