mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 20:32:15 -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) {
|
function MessageListCtrl($scope) {
|
||||||
$scope.folderName = 'Inbox';
|
$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.select = function(email) {
|
||||||
$scope.selected = 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