1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04:00

[WO-92] fix scrolling bus in mail list

This commit is contained in:
Tankred Hase 2013-11-13 14:10:43 +01:00
parent c5dd7c07b9
commit d779ef679d
2 changed files with 5 additions and 5 deletions

View File

@ -354,17 +354,17 @@ define(function(require) {
//
var ngModule = angular.module('mail-list', []);
ngModule.directive('ngIscroll', function($timeout) {
ngModule.directive('ngIscroll', function($parse) {
return {
link: function(scope, elm) {
$timeout(function() {
link: function(scope, elm, attrs) {
var model = $parse(attrs.ngIscroll);
scope.$watch(model, function() {
var myScroll;
// activate iscroll
myScroll = new IScroll(elm[0], {
mouseWheel: true
});
});
}
};
});

View File

@ -4,7 +4,7 @@
<h2>{{state.nav.currentFolder.type}}</h2>
</header>
<div class="list-wrapper" ng-iscroll>
<div class="list-wrapper" ng-iscroll="emails">
<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, 'mail-list-replied': email.answered}" ng-click="select(email)" ng-repeat="email in emails">
<h3>{{email.from[0].name || email.from[0].address}}</h3>