summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/node.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/web/node.js b/web/node.js
index 0ff9577..ab067aa 100644
--- a/web/node.js
+++ b/web/node.js
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2016 Kaarle Ritvanen
+ * Copyright (c) 2012-2017 Kaarle Ritvanen
* See LICENSE file for license details
*/
@@ -108,10 +108,12 @@ angular.module("aconf").directive("aconfFields", function() {
restrict: "E",
scope: {choice: "="},
templateUrl: "directive/set-checkbox.html",
- link: function(scope) {
- scope.name = scope.choice.value;
- scope.value = scope.choice.checked;
- scope.set = true;
+ link: {
+ pre: function(scope) {
+ scope.name = scope.choice.value;
+ scope.value = scope.choice.checked;
+ scope.set = true;
+ }
}
};
}).directive("aconfModel", function() {