Parse integer (#1988)
This commit is contained in:
parent
ef08306906
commit
85b9095f7e
|
@ -592,6 +592,10 @@ llapp.controller 'TreeCtrl', [
|
|||
if a.template
|
||||
a._nodes = templates a.template, a.title
|
||||
node.nodes.push a
|
||||
if a.type.match /^rule$/
|
||||
console.log "Parse rule AuthnLevel as integer"
|
||||
if a.level and typeof a.level == 'string'
|
||||
a.level = parseInt(a.level, 10)
|
||||
d.resolve 'OK'
|
||||
$scope.waiting = false
|
||||
, (response) ->
|
||||
|
|
|
@ -739,6 +739,12 @@ This file contains:
|
|||
a._nodes = templates(a.template, a.title);
|
||||
}
|
||||
node.nodes.push(a);
|
||||
if (a.type.match(/^rule$/)) {
|
||||
console.log("Parse rule AuthnLevel as integer");
|
||||
if (a.level && typeof a.level === 'string') {
|
||||
a.level = parseInt(a.level, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
d.resolve('OK');
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user