More work around authChoice

This commit is contained in:
Xavier Guimard 2015-12-13 22:09:35 +00:00
parent 76691a81bb
commit 3d22c04d9b
2 changed files with 12 additions and 1 deletions

View File

@ -415,7 +415,7 @@ sub authChoiceModules {
id => "authChoiceModules/$k",
title => "$k",
data => $value->{$k},
type => 'keyText'
type => 'authChoice'
};
}
return $self->sendJSONresponse( $req, \@res );

View File

@ -234,6 +234,17 @@
});
}
/* Add auth chain entry to authChoice */
$scope.newAuthChoice = function() {
var node = $scope._findContainer();
node.nodes.push({
"id": node.id + '/n' + (id++),
"title": "1-key",
"data": [],
"type": "authChoice"
});
};
/* Add hash entry */
$scope.newHashEntry = function() {
var node = $scope._findContainer();