Roberto Sánchez
2014-01-22 79121484b7e6f721f5435a102018152a164ed655
securis/src/main/resources/static/js/admin.js
....@@ -4,7 +4,8 @@
44 var app = angular.module('securis');
55
66 var HTTP_ERRORS = {
7
- 403: "Forbidden action",
7
+ 401: "Unathorized action",
8
+ 403: "Forbidden action",
89 500: "Server error",
910 404: "Element not found"
1011 }
....@@ -99,8 +100,8 @@
99100
100101 } ]);
101102
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) {
104105 $scope.scope = $scope;
105106 console.log('Form: currentCatalog:' + $scope.cataLogIndex);
106107