diff --git a/public/index.html b/public/index.html index 6f23ccd23..089eb3686 100644 --- a/public/index.html +++ b/public/index.html @@ -416,39 +416,39 @@
} ]; - var json = '[' + - '{' + - '"text": "Parent 1",' + - '"nodes": [' + - '{' + - '"text": "Child 1",' + - '"nodes": [' + - '{' + - '"text": "Grandchild 1"' + - '},' + - '{' + - '"text": "Grandchild 2"' + - '}' + - ']' + - '},' + - '{' + - '"text": "Child 2"' + - '}' + - ']' + - '},' + - '{' + - '"text": "Parent 2"' + - '},' + - '{' + - '"text": "Parent 3"' + - '},' + - '{' + - '"text": "Parent 4"' + - '},' + - '{' + - '"text": "Parent 5"' + - '}' + - ']'; + var json = JSON.stringify([ + { + "text": "Parent 1", + "nodes": [ + { + "text": "Child 1" + "nodes": [ + { + "text": "Grandchild 1" + }, + { + "text": "Grandchild 2" + } + ] + }, + { + "text": "Child 2" + } + ] + }, + { + "text": "Parent 2" + }, + { + "text": "Parent 3" + }, + { + "text": "Parent 4" + }, + { + "text": "Parent 5" + } + ]); $('#treeview1').treeview({