1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 02:42:17 -05:00

remove jquery view code

This commit is contained in:
Tankred Hase 2013-09-04 13:35:12 +02:00
parent eb93831181
commit 682f37174e
2 changed files with 1 additions and 21 deletions

View File

@ -16,7 +16,7 @@ var Email = function(unread) {
function MessageListCtrl($scope) {
$scope.folderName = 'Inbox';
$scope.emails = [new Email(true), new Email(true), new Email(false)];
$scope.emails = [new Email(true), new Email(true), new Email(false), new Email(false), new Email(false), new Email(false)];
$scope.select = function(email) {
$scope.selected = email;

View File

@ -1,20 +0,0 @@
'use strict';
$(document).ready(function() {
setListeners();
});
function setListeners() {
var li = $('li');
if ("ontouchstart" in window) {
li.on('touchstart', select);
} else {
li.mousedown(select);
}
function select() {
li.toggleClass('selected', false);
$(this).toggleClass('selected');
}
}