PageSourceSearch

https://shopandbox.com/static/scripts/controllers/orderLabelController.js?v=1.1

js shopandbox.com collected 2026-10-06 19:38:29 UTC 921 bytes, 36 lines download raw bytes

1snbApp
2	.controller('orderLabelController', ['$scope',  'AjaxService', 'app_config', '$modal', orderLabelController]);
3
4function orderLabelController($scope, AjaxService, app_config, $modal) {
5	$scope.assignLabel = function(orderId) {
6		 $modal.open({
7			animation: false,
8			templateUrl: 'order_label_modal.html',
9			controller: 'labelModalController',
10			resolve: {
11				data: function () {
12					return orderId;
13				}
14			}
15		});
16	}
17
18	$scope.removeLabel = function(event) {
19		var ok = confirm('Are you sure you want to remove this label?');
20
21		if (!ok) {
22			event.preventDefault();
23		}
24	}
25}
26
27snbApp
28	.controller('labelModalController', ['$scope',  'AjaxService', 'app_config', 'data', '$modalInstance', labelModalController]);
29
30function labelModalController($scope, AjaxService, app_config, orderId, $modalInstance) {
31	$scope.orderId = orderId;
32
33	$scope.exitModal = function () {
34		$modalInstance.dismiss('cancel');
35	};
36}

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.