mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
added json easy beautifier
This commit is contained in:
parent
9da991a41f
commit
cb8cd5ccc9
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ CloudCommander.Editor.CodeMirror = {
|
|||
success:function(data, textStatus, jqXHR){
|
||||
/* if we got json - show it */
|
||||
if(typeof data === 'object')
|
||||
data = JSON.stringify(data);
|
||||
data = JSON.stringify(data, null, 4);
|
||||
|
||||
initCodeMirror_f(data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue