Added socket.io lib. Created a temporary Sockets tab for socket connection testing. Streamlined login process to use scope callbacks.

This commit is contained in:
Chris Houseknecht
2014-04-14 15:11:01 -04:00
parent 54aabb75cd
commit 1b242926e9
173 changed files with 44361 additions and 67 deletions

View File

@@ -264,7 +264,15 @@ function(UpdatePlayStatus, UpdatePlayNoHostsMatched, UpdateHostStatus, UpdatePla
rc: rc
});
};
}]);
}])
.factory('SelectPlay', [ function() {
return function(params) {
var scope = params.scope,
id = params.id;
scope.plays.forEach(function(play, idx) {
scope.plays[idx].playActiveClass = (play.id === id) ? 'active' : '';
});
scope.selectedPlay = id;
};
}])