mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
fixing jshint error
This commit is contained in:
@@ -172,19 +172,8 @@ export default [
|
|||||||
});
|
});
|
||||||
|
|
||||||
function startCodeMirrors(key){
|
function startCodeMirrors(key){
|
||||||
|
var form = _.find(authForms, function(f){
|
||||||
function createIt(name){
|
return f.name === $scope.authVm.activeAuthForm;
|
||||||
ParseTypeChange({
|
|
||||||
scope: $scope.$parent,
|
|
||||||
variable: name,
|
|
||||||
parse_variable: 'parseType',
|
|
||||||
field_id: form.formDef.name + '_' + name
|
|
||||||
});
|
|
||||||
$scope.parseTypeChange('parseType', name);
|
|
||||||
}
|
|
||||||
|
|
||||||
let form = _.find(authForms, function(form){
|
|
||||||
return form.name === $scope.authVm.activeAuthForm;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!key){
|
if(!key){
|
||||||
@@ -195,13 +184,23 @@ export default [
|
|||||||
$scope.$parent[field.name] = '{}';
|
$scope.$parent[field.name] = '{}';
|
||||||
}
|
}
|
||||||
if(field.codeMirror) {
|
if(field.codeMirror) {
|
||||||
createIt(field.name)
|
createIt(field.name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(key){
|
else if(key){
|
||||||
createIt(key);
|
createIt(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createIt(name){
|
||||||
|
ParseTypeChange({
|
||||||
|
scope: $scope.$parent,
|
||||||
|
variable: name,
|
||||||
|
parse_variable: 'parseType',
|
||||||
|
field_id: form.formDef.name + '_' + name
|
||||||
|
});
|
||||||
|
$scope.parseTypeChange('parseType', name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function addFieldInfo(form, key) {
|
function addFieldInfo(form, key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user