| .. | .. |
|---|
| 4 | 4 | var app = angular.module('securis'); |
|---|
| 5 | 5 | |
|---|
| 6 | 6 | var HTTP_ERRORS = { |
|---|
| 7 | | - 403: "Forbidden action", |
|---|
| 7 | + 401: "Unathorized action", |
|---|
| 8 | + 403: "Forbidden action", |
|---|
| 8 | 9 | 500: "Server error", |
|---|
| 9 | 10 | 404: "Element not found" |
|---|
| 10 | 11 | } |
|---|
| .. | .. |
|---|
| 99 | 100 | |
|---|
| 100 | 101 | } ]); |
|---|
| 101 | 102 | |
|---|
| 102 | | - app.controller('CatalogFormCtrl', [ '$scope', '$http', 'toaster', 'Catalogs', |
|---|
| 103 | | - function($scope, $http, toaster, Catalogs) { |
|---|
| 103 | + app.controller('CatalogFormCtrl', [ '$scope', '$http', 'toaster', 'Catalogs', '$L', |
|---|
| 104 | + function($scope, $http, toaster, Catalogs, $L) { |
|---|
| 104 | 105 | $scope.scope = $scope; |
|---|
| 105 | 106 | console.log('Form: currentCatalog:' + $scope.cataLogIndex); |
|---|
| 106 | 107 | |
|---|