mail: mark currently loaded mail
This commit is contained in:
parent
1521ee6372
commit
0cd7d1e39a
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue