From 85d21bbcfb1b61be823bfca7fa8a8cf78d9a824b Mon Sep 17 00:00:00 2001 From: Florian Pagnoux Date: Tue, 15 Nov 2016 16:42:58 +0100 Subject: [PATCH] Vocaliser validation de l'ajout d'un enfant --- app/js/controllers/foyer/enfants.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/js/controllers/foyer/enfants.js b/app/js/controllers/foyer/enfants.js index f378c74f50..05fcec37a3 100644 --- a/app/js/controllers/foyer/enfants.js +++ b/app/js/controllers/foyer/enfants.js @@ -6,6 +6,8 @@ angular.module('ddsApp').controller('FoyerEnfantsCtrl', function($scope, $locati $scope.$on('individu.enfant', function(e, enfant) { $scope.enfants.push(enfant); $scope.displayForm = false; + var addEnfantButton = document.querySelector('.btn-new-entity'); + addEnfantButton.focus(); }); $scope.$on('actionCancelled', function() {