remove debug code

This commit is contained in:
Davide Alberani 2015-04-19 22:05:04 +02:00
parent 95136829bc
commit 4509e39467
2 changed files with 1 additions and 1 deletions

View file

@ -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) {

View file

@ -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();
});