JavaScript code cleanup

This commit is contained in:
Davide Alberani 2015-03-21 15:45:40 +01:00
parent bd5e73f62b
commit c63124f575
5 changed files with 111 additions and 109 deletions

View file

@ -4,6 +4,7 @@ var eventManApp = angular.module('eventManApp', [
'eventManControllers' 'eventManControllers'
]); ]);
eventManApp.directive('ngEnter', function () { eventManApp.directive('ngEnter', function () {
return function (scope, element, attrs) { return function (scope, element, attrs) {
element.bind("keydown keypress", function (event) { element.bind("keydown keypress", function (event) {
@ -17,6 +18,7 @@ eventManApp.directive('ngEnter', function () {
}; };
}); });
eventManApp.config(['$routeProvider', eventManApp.config(['$routeProvider',
function($routeProvider) { function($routeProvider) {
$routeProvider. $routeProvider.