bugfix, expand/collapse keyboard shortcut didn't work after stream-change

This commit is contained in:
Hannes Mannerheim 2015-07-01 19:49:50 +02:00
parent a13ccd7ca1
commit 8559bac6e2
2 changed files with 6 additions and 1 deletions

View File

@ -1551,6 +1551,7 @@ background-repeat: no-repeat;
}
.stream-item.expanded.selected-by-keyboard::before {
height:100%;
border-radius: 9px;
}
.show-full-conversation {

View File

@ -510,7 +510,11 @@ function setNewCurrentStream(stream,actionOnSuccess,setLocation) {
$(window).scrollTop(0);
$('body').addClass('androidFix').scrollTop(0).removeClass('androidFix');
$('#feed-body').removeAttr('data-search-page-number'); // null any searches
// blur any selected links
$('a').blur();
// null any searches
$('#feed-body').removeAttr('data-search-page-number');
// remember the most recent stream selection in global var
window.currentStream = stream;