From 8f97df85eefe4d648f2002b8d68818ef6020c2df Mon Sep 17 00:00:00 2001
From: Roberto Sánchez <roberto.sanchez@curisit.net>
Date: Thu, 16 Jan 2014 11:57:55 +0000
Subject: [PATCH] #396 feature - Added i18n support to JS and HTML tags with AngularJS
---
securis/src/main/resources/static/js/admin.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/securis/src/main/resources/static/js/admin.js b/securis/src/main/resources/static/js/admin.js
index 5953c1c..6d806ac 100644
--- a/securis/src/main/resources/static/js/admin.js
+++ b/securis/src/main/resources/static/js/admin.js
@@ -1,7 +1,7 @@
(function() {
'use strict';
- var app = angular.module('app', [ 'ngRoute', 'ngResource', 'toaster', 'localytics.directives', 'catalogs' ]);
+ var app = angular.module('securis');
var HTTP_ERRORS = {
403: "Forbidden action",
@@ -28,7 +28,7 @@
};
});
- app.controller('CatalogsCtrl', [
+ app.controller('AdminCtrl', [
'$scope',
'$http',
'toaster',
@@ -87,7 +87,7 @@
toaster.pop('success', Catalogs.getName(), "Element deleted successfully");
},function(error) {
console.log(error);
- toaster.pop('error', Catalogs.getName(), "Error deleting element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 12000);
+ toaster.pop('error', Catalogs.getName(), "Error deleting element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 10000);
});
}
});
@@ -153,7 +153,7 @@
toaster.pop('success', Catalogs.getName(), "Element saved successfully");
}, function(error) {
console.log(error);
- toaster.pop('error', Catalogs.getName(), "Error saving element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 12000);
+ toaster.pop('error', Catalogs.getName(), "Error saving element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 10000);
});
}
--
Gitblit v1.3.2