+
+
Resumo
@@ -209,7 +210,7 @@
-
+
diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4Controller.js b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4Controller.js
index 263ace54..d7c40280 100644
--- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4Controller.js
+++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4Controller.js
@@ -184,6 +184,17 @@
};
$scope.$on('afterrender', function(event, args){
+
+ //listeners
+ $scope.$watch('editing.ficha.trabalhador_data_nascimento', function(newVal, oldVal){
+
+ if(newVal != null && newVal != oldVal)
+ {
+ var a = moment(new Date());
+ var b = moment(newVal);
+ $scope.calculatedAge = a.diff(b, 'years');
+ }
+ });
});
});
\ No newline at end of file
diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4View.html b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4View.html
index 62b1dcdb..ac083d92 100644
--- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4View.html
+++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form4/Form4View.html
@@ -30,7 +30,7 @@
@@ -38,7 +38,7 @@