mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Correctly redraw codemirror instance on invalid json error
This commit is contained in:
parent
18bc32d248
commit
8a5ddef6fb
@ -71,7 +71,7 @@ export default
|
||||
}
|
||||
catch (e) {
|
||||
Alert('Parse Error', 'Failed to parse valid YAML. ' + e.message);
|
||||
setTimeout( function() { scope.$apply( function() { scope[model] = 'yaml'; createField(); }); }, 500);
|
||||
setTimeout( function() { scope.$apply( function() { scope[model] = 'yaml'; createField(onReady, onChange, fld); }); }, 500);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -89,7 +89,7 @@ export default
|
||||
}
|
||||
catch (e) {
|
||||
Alert('Parse Error', 'Failed to parse valid JSON. ' + e.message);
|
||||
setTimeout( function() { scope.$apply( function() { scope[model] = 'json'; createField(); }); }, 500 );
|
||||
setTimeout( function() { scope.$apply( function() { scope[model] = 'json'; createField(onReady, onChange, fld); }); }, 500 );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user