diff --git a/bower.json b/bower.json
index 43f1bd0..2e89092 100644
--- a/bower.json
+++ b/bower.json
@@ -42,7 +42,7 @@
"angular-translate-loader-static-files": "^2.11.0",
"angular-moment": "1.0.0-beta.6",
"angular-websocket": "^1.1.0",
- "angular-base64": "^2.0.5",
+ "angular-utf8-base64": "^0.0.5",
"angular-local-storage": "^0.2.7",
"angular-busy": "^4.1.3",
"angular-promise-buttons": "^0.1.14",
diff --git a/src/index.html b/src/index.html
index b171d8d..0d25503 100644
--- a/src/index.html
+++ b/src/index.html
@@ -261,7 +261,7 @@
-
+
diff --git a/src/scripts/core/app.js b/src/scripts/core/app.js
index 24565fa..9fb0cd5 100644
--- a/src/scripts/core/app.js
+++ b/src/scripts/core/app.js
@@ -11,7 +11,7 @@
'pascalprecht.translate',
'angularMoment',
'ngWebSocket',
- 'base64',
+ 'ab-base64',
'LocalStorageModule',
'cgBusy',
'angularPromiseButtons',
diff --git a/src/scripts/services/ariaNgCommonService.js b/src/scripts/services/ariaNgCommonService.js
index 381db48..60999e4 100644
--- a/src/scripts/services/ariaNgCommonService.js
+++ b/src/scripts/services/ariaNgCommonService.js
@@ -1,11 +1,11 @@
(function () {
'use strict';
- angular.module('ariaNg').factory('ariaNgCommonService', ['$location', '$timeout', '$base64', 'SweetAlert', '$translate', 'ariaNgConstants', function ($location, $timeout, $base64, SweetAlert, $translate, ariaNgConstants) {
+ angular.module('ariaNg').factory('ariaNgCommonService', ['$location', '$timeout', 'base64', 'SweetAlert', '$translate', 'ariaNgConstants', function ($location, $timeout, base64, SweetAlert, $translate, ariaNgConstants) {
return {
generateUniqueId: function () {
var sourceId = ariaNgConstants.appPrefix + '_' + Math.round(new Date().getTime() / 1000) + '_' + Math.random();
- var hashedId = $base64.encode(sourceId);
+ var hashedId = base64.encode(sourceId);
return hashedId;
},
@@ -122,13 +122,13 @@
if (!angular.isArray(array) || array.length < 1) {
return 0;
}
-
+
var count = 0;
-
+
for (var i = 0; i < array.length; i++) {
count += (array[i] == value ? 1 : 0);
}
-
+
return count;
},
parseOrderType: function (value) {
diff --git a/src/scripts/services/ariaNgSettingService.js b/src/scripts/services/ariaNgSettingService.js
index 9904fe8..6690aa6 100644
--- a/src/scripts/services/ariaNgSettingService.js
+++ b/src/scripts/services/ariaNgSettingService.js
@@ -1,7 +1,7 @@
(function () {
'use strict';
- angular.module('ariaNg').factory('ariaNgSettingService', ['$location', '$base64', '$translate', 'amMoment', 'localStorageService', 'ariaNgConstants', 'ariaNgDefaultOptions', 'ariaNgLanguages', function ($location, $base64, $translate, amMoment, localStorageService, ariaNgConstants, ariaNgDefaultOptions, ariaNgLanguages) {
+ angular.module('ariaNg').factory('ariaNgSettingService', ['$location', '$translate', 'base64', 'amMoment', 'localStorageService', 'ariaNgConstants', 'ariaNgDefaultOptions', 'ariaNgLanguages', function ($location, $translate, base64, amMoment, localStorageService, ariaNgConstants, ariaNgDefaultOptions, ariaNgLanguages) {
var getDefaultRpcHost = function () {
return $location.$$host;
};
@@ -48,7 +48,7 @@
}
if (options.secret) {
- options.secret = $base64.decode(options.secret);
+ options.secret = base64.decode(options.secret);
}
return options;
@@ -96,11 +96,11 @@
},
getSecret: function () {
var value = getOption('secret');
- return (value ? $base64.decode(value) : value);
+ return (value ? base64.decode(value) : value);
},
setSecret: function (value) {
if (value) {
- value = $base64.encode(value);
+ value = base64.encode(value);
}
setOption('secret', value);