PageSourceSearch

https://mrmarine.co.nz/controllers/SupplierController.js

js mrmarine.co.nz collected 2026-09-28 18:50:22 UTC 1,508 bytes, 33 lines download raw bytes

1app.requires.push('SupplierControllers');
2angular.module('SupplierControllers', ['Synaps', 'ui.router', 'AuthServices', "ngStorage", "ui.tree", "ng-currency", "angularFileUpload", "ui.bootstrap", "ngLocale", "WorkflowServices", 'inputDropdown'])
3.controller('SupplierController', ['$scope', '$http', '$location', '$window', '$state', '$controller', 'AuthService',
4    function ($scope, $http, $location, $window, $state, $controller, AuthService) {
5
6    }])
7.controller('Supplier.ContactSupplierController', ['$scope', '$http', '$location', '$state', '$controller', '$stateParams', 'AuthService',
8    function ($scope, $http, $location, $state, $controller, $stateParams, AuthService) {
9
10        $scope.$parent.$watch('Loading', function () {
11            if ($scope.$parent.Loading == false) {
12                $http.get("/api/suppliers/buyers/" + $scope.$parent.Model.Id)
13                    .then(function (result) {
14                        $scope.Buyer = result.data;
15                    });
16            }
17        });
18
19        $scope.Activate = function () {
20            $http.post("/api/suppliers/buyers/" + $scope.$parent.Model.Id)
21            .then(function (result) {
22                $scope.Buyer = result.data;
23            });
24        }
25
26        $scope.Deactivate = function () {
27            $http.delete("/api/suppliers/buyers/" + $scope.$parent.Model.Id)
28            .then(function (result) {
29                $scope.Buyer = null;
30            });
31        }
32
33    }])

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.