diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 85f961d..76b1f50 100644 --- a/angular_app/js/controllers.js +++ b/angular_app/js/controllers.js @@ -120,7 +120,6 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', 'Event', 'Person', $scope.newPerson = {}; }); $scope.query = ''; - console.log(angular.element($scope.query)); }; $scope.fastAddPerson = function(person, isNew) { diff --git a/angular_app/js/directives.js b/angular_app/js/directives.js index 2aca1cb..d74d401 100644 --- a/angular_app/js/directives.js +++ b/angular_app/js/directives.js @@ -29,6 +29,7 @@ eventManApp.directive('eventmanFocus', function () { eventManApp.directive('resetFocus', function () { function link(scope, element, attrs) { element.on('click', function() { + // FIXME: that's so wrong! We need to make the new directive communicate. var el = angular.element(document.querySelector('#query-persons')); el.length && el[0].focus(); });