PageSourceSearch

https://samarthinstitute.edu.in/engg/web-assets/angular/angularjs/…/cms-admin-admission.js?version=1772287905

js samarthinstitute.edu.in collected 2026-10-10 00:01:12 UTC 2,277 bytes, 61 lines download raw bytes

1var csrfloginHash = $('#csrfloginHash').val();
2
3app.filter('unsafe', function ($sce) { return $sce.trustAsHtml; });
4
5app.controller('AdmissionDegreeListServicesCtrl', function ($scope, $compile, $http, toastr) {
6    
7    
8    $scope.admissionDegreeListInit = function () {
9        $scope.pagesListArray = [];
10        $scope.menuTypeDrop = 'main-menu';
11        $scope.admissionTypeName = '';
12        $scope.selectFaculty = '';
13        $scope.getDepartments();
14    }
15
16    // Get all Departments List Service
17    $scope.getDepartments = function () {
18        var transform = function (data) {
19            return $.param(data);
20
21        }
22        $http.post(window.site_url + 'FrontEndAPI/getAdmissionAndItsDegreeYear', {
23            inputSearchValue: $scope.inputSearchValue,
24        }, {
25            headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' },
26            transformRequest: transform
27        }).then(function (response) {
28            if (response.data.status.status == "200") {
29                $scope.admissionListArray = response.data.data;               
30            } else {
31                $scope.admissionListArray = [];
32            }
33        })
34    }
35
36    $scope.checkAnyAdmissionDegreeExist = (getDepartment) => {
37        let getFacultyArray = getDepartment.faculty.split('%^%');
38        let retrunValue = false;
39        for (let i = 0; i < getFacultyArray.length; i++) {
40            if (getFacultyArray[i].split('~^~')[2] == 1) {
41                retrunValue = true;
42            }
43        }
44        return retrunValue;
45    }
46
47    $scope.facultyLinkClick = async (event) => {
48        var target = angular.element(event.target);
49        let facultyObj = target.parent().attr('facultyObj');
50        let departmentObj = target.parent().attr('departmentObj');
51        localStorage.removeItem('cms_page_id');
52        localStorage.removeItem('cms_page_link');
53        localStorage.removeItem('cms_page_name');
54        localStorage.removeItem('cms_page_type');
55
56        localStorage.setItem('Faculty_dsl_id', facultyObj.split('~^~')[0]);
57        localStorage.setItem('Degree_Year_Name', facultyObj.split('~^~')[1]);
58        localStorage.setItem('AdmissiontLiId', departmentObj);
59        window.open(base_url + 'department', "_self");
60    }
61});

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.