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:
parent
eb93831181
commit
682f37174e
@ -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;
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user