add comment as cannot knockout mapping when fields can be array or not

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1226206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-01 00:46:41 +00:00
parent 1ca332cf02
commit d45f65954d
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,8 @@ $(function() {
* @param data Role response from redback rest api
*/
mapRole=function(data) {
// olamy this mapping has issues when fields are array or not
//return ko.mapping.fromJS(data);
// name, description, assignable,childRoleNames,parentRoleNames,users,parentsRolesUsers,permissions
//$.log("mapRole:"+data.name+":");
var childRoleNames = mapStringArray(data.childRoleNames);