Browse Source

remove debug code

Davide Alberani 9 years ago
parent
commit
4509e39467
2 changed files with 1 additions and 1 deletions
  1. 0 1
      angular_app/js/controllers.js
  2. 1 0
      angular_app/js/directives.js

+ 0 - 1
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) {

+ 1 - 0
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();
         });