fix of revert all on jobs tab and then nav to auth tab and codemirrors weren't inited

This commit is contained in:
John Mitchell
2017-07-14 13:30:34 -04:00
parent 70eeca1a38
commit 47232d732f
2 changed files with 1 additions and 4 deletions

View File

@@ -295,7 +295,7 @@ export default [
let parts = url.split('/'); let parts = url.split('/');
let tab = parts[parts.length - 1]; let tab = parts[parts.length - 1];
if (tab === 'auth' && !codeInputInitialized) { if (tab === 'auth') {
startCodeMirrors(); startCodeMirrors();
codeInputInitialized = true; codeInputInitialized = true;
} }

View File

@@ -505,9 +505,6 @@ export default [
else if($scope[key + '_field'].reset === "CUSTOM_LOGO"){ else if($scope[key + '_field'].reset === "CUSTOM_LOGO"){
$scope.$broadcast(key+'_reverted'); $scope.$broadcast(key+'_reverted');
} }
else if($scope[key + '_field'].type === "textarea" && _.isArray($scope.configDataResolve[key].default)){
$scope[key] = ConfigurationUtils.arrayToList($scope[key], key);
}
else if($scope[key + '_field'].hasOwnProperty('codeMirror')){ else if($scope[key + '_field'].hasOwnProperty('codeMirror')){
$scope[key] = '{}'; $scope[key] = '{}';
$scope.$broadcast('codeMirror_populated', key); $scope.$broadcast('codeMirror_populated', key);