PageSourceSearch

https://rekrutacja.pedagogium.pl/pdg-irk-app/content/script/irk/pa…/stronaglowna/polaObowiazkoweController.js

js pedagogium.pl collected 2026-10-04 13:34:57 UTC 1,609 bytes, 45 lines download raw bytes

1(function() {
2    'use strict';
3
4    angular
5        .module("irk")
6        .constant("POLA_OBOWIAZKOWE_EVENTS", {
7            odswiezPolaObowiazkowe: 'odswiezPolaObowiazkowe'
8        })
9        .controller("PolaObowiazkoweController", PolaObowiazkoweController);
10
11    function PolaObowiazkoweController($scope, $http, $location, $rootScope, SIDEBAR_MENU_EVENTS, POLA_OBOWIAZKOWE_EVENTS) {
12        var url = $location.path();
13        $scope.sciezkaIRK = url.substring(url.lastIndexOf('/'));
14        $scope.wybraneGrupy = undefined;
15        $scope.updatePolaObowiazkowe = function() {
16            return $http.get('REST/wazneInformacje', {})
17                .then(function (grupy) {
18                    $scope.wybraneGrupy = grupy.data.opisyProblemow.filter(g => 
19                        g.sciezkaDoPodstronyIrk === $scope.sciezkaIRK
20                    )
21                });
22        };
23
24        $scope.updatePolaObowiazkowe();
25        $scope.$on(SIDEBAR_MENU_EVENTS.zmianaLiczbyNieprzeczytanychWiadomosci, function() {
26            $scope.updatePolaObowiazkowe();
27        });
28        $rootScope.$on(POLA_OBOWIAZKOWE_EVENTS.odswiezPolaObowiazkowe, function() {
29            $scope.updatePolaObowiazkowe();
30        });
31    };
32
33    angular
34        .module("irk")
35        .directive("polaObowiazkoweComponent", PolaObowiazkoweComponent);
36    
37        function PolaObowiazkoweComponent() { 
38            return {
39                restrict: "E",
40                replace: true,
41                transclude: true,
42                templateUrl: "irk.auth.stronaglowna.PolaObowiazkoweComponent"
43            }
44        }
45})();

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.