1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-13 14:38:02 -05:00

[WO-153] fix iScroll init on list write

This commit is contained in:
Tankred Hase 2013-12-05 13:25:45 +01:00
parent 289f3d219a
commit 9a8e6ff3dd

View File

@ -4,7 +4,7 @@
<h2>{{state.nav.currentFolder.type}}</h2>
</header>
<div class="list-wrapper" ng-iscroll="state.nav.currentFolder.messages">
<div class="list-wrapper" ng-iscroll="state.nav.currentFolder.messages.length">
<ul class="mail-list">
<li ng-class="{'mail-list-active': email === state.mailList.selected, 'mail-list-attachment': email.attachments !== undefined && email.attachments.length > 0, 'mail-list-unread': email.unread && !email.answered, 'mail-list-replied': email.answered}" ng-click="select(email)" ng-repeat="email in state.nav.currentFolder.messages | orderBy:'uid':true">
<h3>{{email.from[0].name || email.from[0].address}}</h3>