summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/components/contactList/contactList_controller.js2
-rw-r--r--js/public/script.js29
-rw-r--r--js/services/settings_service.js27
3 files changed, 28 insertions, 30 deletions
diff --git a/js/components/contactList/contactList_controller.js b/js/components/contactList/contactList_controller.js
index 3a712353..5e949a4c 100644
--- a/js/components/contactList/contactList_controller.js
+++ b/js/components/contactList/contactList_controller.js
@@ -9,5 +9,5 @@ app.controller('contactlistCtrl', ['$scope', 'ContactService', 'Contact', functi
ctrl.createContact = function() {
ContactService.create();
- }
+ };
}]);
diff --git a/js/public/script.js b/js/public/script.js
index bff9c959..2cbf89ac 100644
--- a/js/public/script.js
+++ b/js/public/script.js
@@ -143,7 +143,7 @@ app.controller('contactlistCtrl', ['$scope', 'ContactService', 'Contact', functi
ctrl.createContact = function() {
ContactService.create();
- }
+ };
}]);
app.directive('contactlist', function() {
@@ -442,24 +442,23 @@ app.service('DavService', ['DavClient', function(client) {
}]);
app.service('SettingsService', function() {
-
- var settings = {
- addressBooks: [
- "testAddr"
- ]
- };
+ var settings = {
+ addressBooks: [
+ "testAddr"
+ ]
+ };
this.set = function(key, value) {
- settings[key] = value;
- };
+ settings[key] = value;
+ };
- this.get = function(key) {
- return settings[key];
- };
+ this.get = function(key) {
+ return settings[key];
+ };
- this.getAll = function() {
- return settings;
- }
+ this.getAll = function() {
+ return settings;
+ };
});
app.filter('JSON2vCard', function() {
diff --git a/js/services/settings_service.js b/js/services/settings_service.js
index 6f298881..103b8ca5 100644
--- a/js/services/settings_service.js
+++ b/js/services/settings_service.js
@@ -1,20 +1,19 @@
app.service('SettingsService', function() {
-
- var settings = {
- addressBooks: [
- "testAddr"
- ]
- };
+ var settings = {
+ addressBooks: [
+ "testAddr"
+ ]
+ };
this.set = function(key, value) {
- settings[key] = value;
- };
+ settings[key] = value;
+ };
- this.get = function(key) {
- return settings[key];
- };
+ this.get = function(key) {
+ return settings[key];
+ };
- this.getAll = function() {
- return settings;
- }
+ this.getAll = function() {
+ return settings;
+ };
});