PageSourceSearch

https://classic.ptotoday.com/components/com_store/app/directives/s…l-search-inline.controller.js?6ab4ec80cf30f

js ptotoday.com collected 2026-09-24 09:26:19 UTC 1,057 bytes, 35 lines download raw bytes

1'use strict';
2angular.module('sfmStore')
3    .controller('sfmSchoolSearchInlineController', function($scope, $school, $order, $sfmSchoolNotFound, $sfmNotMySchool) {
4        var vm = this;
5        vm.zipPattern = /\d{5}/;
6        vm.order = $order;
7        vm.showSearch = false;
8        vm.searchZip = $order.getSchool().Zip || $order.getProfile.zip || '';
9        vm.changeSchool = function() {
10            vm.showSearch = !vm.showSearch;
11        }
12
13        vm.findSchoolsInZip = function() {
14            $school.getSchoolsByZip(vm.searchZip).then(function(res) {
15                vm.schools = res.data.data;
16            });
17        }
18
19        vm.selectSchool = function() {
20            $order.updateSchool(vm.selectedSchool);
21            vm.showSearch = false;
22        }
23
24        vm.cancelSearch = function() {
25            vm.showSearch = false;
26        }
27
28        vm.schoolNotFound = function() {
29             $sfmSchoolNotFound.showModal();
30        }
31        
32        vm.notMySchool = function() {
33            $sfmNotMySchool.showModal();
34       }
35    })

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.