mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
fix scope location of json fields of settings auth form
This commit is contained in:
parent
d2118b8d25
commit
0d1b25131d
@ -242,8 +242,8 @@ export default [
|
||||
// Attach codemirror to fields that need it
|
||||
_.each(form.formDef.fields, function(field) {
|
||||
// Codemirror balks at empty values so give it one
|
||||
if($scope.$parent[field.name] === null && field.codeMirror) {
|
||||
$scope.$parent[field.name] = '{}';
|
||||
if($scope.$parent.$parent[field.name] === null && field.codeMirror) {
|
||||
$scope.$parent.$parent[field.name] = '{}';
|
||||
}
|
||||
if(field.codeMirror) {
|
||||
createIt(field.name);
|
||||
@ -256,11 +256,11 @@ export default [
|
||||
|
||||
function createIt(name){
|
||||
ParseTypeChange({
|
||||
scope: $scope.$parent,
|
||||
scope: $scope.$parent.$parent,
|
||||
variable: name,
|
||||
parse_variable: 'parseType',
|
||||
field_id: form.formDef.name + '_' + name,
|
||||
readOnly: $scope.$parent.configDataResolve[name] && $scope.$parent.configDataResolve[name].disabled ? true : false
|
||||
readOnly: $scope.configDataResolve[name] && $scope.configDataResolve[name].disabled ? true : false
|
||||
});
|
||||
$scope.parseTypeChange('parseType', name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user