Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
e1a131c1
Commit
e1a131c1
authored
Jun 24, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug json widget: indent json
parent
7327a128
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dream/platform/src2/dream/Output_viewDebugJson.js
dream/platform/src2/dream/Output_viewDebugJson.js
+2
-2
dream/platform/static/dream/Output_viewDebugJson.js
dream/platform/static/dream/Output_viewDebugJson.js
+3
-3
No files found.
dream/platform/src2/dream/Output_viewDebugJson.js
View file @
e1a131c1
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
.
push
(
function
(
result_json
)
{
.
push
(
function
(
result_json
)
{
var
result
=
JSON
.
parse
(
result_json
);
var
result
=
JSON
.
parse
(
result_json
);
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
input
);
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
input
,
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
result
);
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
result
,
undefined
,
"
"
);
});
});
});
});
...
...
dream/platform/static/dream/Output_viewDebugJson.js
View file @
e1a131c1
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
_attachment
:
"
simulation.json
"
_attachment
:
"
simulation.json
"
}).
push
(
function
(
result_json
)
{
}).
push
(
function
(
result_json
)
{
var
result
=
JSON
.
parse
(
result_json
);
var
result
=
JSON
.
parse
(
result_json
);
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
input
);
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
input
,
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
result
);
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
result
,
undefined
,
"
"
);
});
});
});
});
})(
window
,
rJS
,
initGadgetMixin
);
})(
window
,
rJS
,
initGadgetMixin
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment