1(function() { 2 'use strict'; 3 4 angular 5 .module("irk") 6 .controller("DaneOsoboweController", DaneOsoboweController); 7 8 function DaneOsoboweController($scope, $route, $http, Session) { 9 $scope.kandydat = undefined; 10 $scope.wymaganeAkcje = {}; 11 $scope.updateDaneOsobowe = function(group) { 12 return $http.get('REST/daneOsobowe', {}) 13 .then(function (daneOsoboweKandydataResponse) { 14 $scope.kandydat = daneOsoboweKandydataResponse.data; 15 $scope.wymaganeAkcje.wymaganeUzupelnienieDanychOsobowych = 16 $scope.kandydat.numerIdentyfikacyjny && $scope.kandydat.adresZameldowania.ulica; 17 }); 18 }; 19 $scope.updateDaneOsobowe(); 20 21 $scope.bledyFotografii = undefined; 22 $scope.updateBledyFotografii = function(group) { 23 return $http.get('REST/wazneInformacje/bledyFotografii', {}) 24 .then(function (bledyFotografii) { 25 $scope.bledyFotografii = bledyFotografii.data; 26 }); 27 }; 28 $scope.updateBledyFotografii(); 29 30 $scope.sessionObserverCallback = function() { 31 $scope.updateDaneOsobowe(); 32 }; 33 34 Session.registerObserverCallback($scope.sessionObserverCallback); 35 $scope.$on('$destroy', function() { 36 Session.removeObserverCallback($scope.sessionObserverCallback); 37 }); 38 39 $scope.timestamp = new Date().getTime(); 40 }; 41 42 angular 43 .module("irk") 44 .directive("daneOsoboweComponent", DaneOsoboweComponent); 45 46 function DaneOsoboweComponent() { 47 return { 48 restrict : "E", 49 replace : true, 50 transclude : true, 51 templateUrl : "irk.auth.stronaglowna.DaneOsoboweComponent" 52 } 53 } 54})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.