1
0
Fork 0

Added prettyPrint of nested JSON in Document Editing

This commit is contained in:
Michael Hackstein 2013-07-30 15:40:42 +02:00
parent dd9c478346
commit 46eb68c32e
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ var documentView = Backbone.View.extend({
key,
'',
self.value2html(value, true),
JSON.stringify(value),
JSON.stringify(value, null, 4),
"",
""
]);
@ -171,7 +171,7 @@ var documentView = Backbone.View.extend({
key,
'<i class="icon-edit" id="editFirstRow"></i>',
self.value2html(value),
JSON.stringify(value),
JSON.stringify(value, null, 4),
'<i class="icon-edit" id="editSecondRow"></i>',
'<button class="enabled" id="deleteRow"><img src="img/icon_delete.png"'+
'width="16" height="16"></button>'