diff --git a/angular_app/event-info.html b/angular_app/event-info.html
index 0616271..fedd1b9 100644
--- a/angular_app/event-info.html
+++ b/angular_app/event-info.html
@@ -62,16 +62,16 @@
{{person.job}} @ {{person.company}}
-
+
+ |
+
+
+
+
+
+ {{person[col.key]}}
+
|
-
-
-
-
-
- {{person[col.key]}}
-
- |
|
diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js
index ad05abb..85f961d 100644
--- a/angular_app/js/controllers.js
+++ b/angular_app/js/controllers.js
@@ -119,6 +119,8 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', 'Event', 'Person',
}
$scope.newPerson = {};
});
+ $scope.query = '';
+ console.log(angular.element($scope.query));
};
$scope.fastAddPerson = function(person, isNew) {
@@ -148,6 +150,13 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', 'Event', 'Person',
});
};
+ $scope.focusinControl = {};
+
+ $scope.setPersonAttributeAndRefocus = function(person, key, value) {
+ $scope.setPersonAttribute(person, key, value);
+ $scope.query = '';
+ };
+
$scope.removeAttendee = function(person) {
Event.deletePerson({
_id: $stateParams.id,
diff --git a/angular_app/js/directives.js b/angular_app/js/directives.js
index 401329c..2aca1cb 100644
--- a/angular_app/js/directives.js
+++ b/angular_app/js/directives.js
@@ -25,3 +25,16 @@ eventManApp.directive('eventmanFocus', function () {
};
});
+
+eventManApp.directive('resetFocus', function () {
+ function link(scope, element, attrs) {
+ element.on('click', function() {
+ var el = angular.element(document.querySelector('#query-persons'));
+ el.length && el[0].focus();
+ });
+ };
+ return {
+ link: link
+ };
+});
+