summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-01-06 11:46:51 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-01-06 11:46:51 +0200
commit820620dcba524218f1a2884b5466353453bb1edb (patch)
tree52182056ecc53e489be4e0906f304ce4a4fcdc66
parent76b4d37fec67081228dcedcaf2b70d2b48b544c4 (diff)
downloadaconf-820620dcba524218f1a2884b5466353453bb1edb.tar.bz2
aconf-820620dcba524218f1a2884b5466353453bb1edb.tar.xz
web: fix highlighting changed set checkboxesv0.6.4
-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() {