From 4509e39467e5d51354054a9c39b990f15c738295 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 19 Apr 2015 22:05:04 +0200 Subject: [PATCH] remove debug code --- angular_app/js/controllers.js | 1 - angular_app/js/directives.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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(); });