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.