update
This commit is contained in:
+1
-45
@@ -196,52 +196,8 @@
|
||||
function create_inner() {
|
||||
const mind_name = $('#mind_name_crt').val()
|
||||
if (mind_name) {
|
||||
const snapshot_data = {
|
||||
id: 'root',
|
||||
topic: 'jsMind',
|
||||
children: [
|
||||
{
|
||||
id: 'easy',
|
||||
topic: 'Easy',
|
||||
direction: 'left',
|
||||
expanded: false,
|
||||
children: [
|
||||
{id: 'easy1', topic: 'Easy to show'},
|
||||
{id: 'easy2', topic: 'Easy to edit'},
|
||||
{id: 'easy3', topic: 'Easy to store'},
|
||||
{id: 'easy4', topic: 'Easy to embed'}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'open',
|
||||
topic: 'Open Source',
|
||||
direction: 'left',
|
||||
expanded: false,
|
||||
children: [
|
||||
{id: 'open1', topic: 'on GitHub'},
|
||||
{id: 'open2', topic: 'BSD License'}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'powerful',
|
||||
topic: 'Powerful',
|
||||
direction: 'right',
|
||||
expanded: false,
|
||||
children: [
|
||||
{id: 'powerful1', topic: 'Base on Javascript'},
|
||||
{id: 'powerful2', topic: 'Base on HTML5'},
|
||||
{id: 'powerful3', topic: 'Depends on you'}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'other',
|
||||
topic: '多人协作',
|
||||
direction: 'right'
|
||||
}
|
||||
]
|
||||
}
|
||||
// post start
|
||||
const post_data = {'mind_name': mind_name, 'data_format': 'node_tree', 'snapshot_data': view.json2string(snapshot_data)}
|
||||
const post_data = {'mind_name': mind_name}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "create",
|
||||
|
||||
Reference in New Issue
Block a user