TOC html
Jump to navigation
Jump to search
| Line 55: | Line 55: | ||
$ci(function() { | $ci(function() { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
var wiki_list = [] | var wiki_list = [] | ||
| Line 101: | Line 94: | ||
var contents = $ci('#TOC_contents').val(); | var contents = $ci('#TOC_contents').val(); | ||
| − | contents = | + | contents = TOC_functions.base64_to_utf8(index_obj_saved); |
if(contents) { | if(contents) { | ||
| − | contents = JSON.parse(contents) | + | contents = JSON.parse(contents); |
| − | + | TOC_functions.translate_TOC_rec(contents,'from'); | |
| Line 117: | Line 110: | ||
return data.node.isFolder() ? false : true; | return data.node.isFolder() ? false : true; | ||
}, | }, | ||
| − | dnd5: | + | dnd5: TOC_functions.fancytree_dnd5_conf |
}); | }); | ||
} | } | ||
| Line 130: | Line 123: | ||
index_obj_saved = tree.toDict(true).children; | index_obj_saved = tree.toDict(true).children; | ||
| − | + | TOC_functions.translate_TOC_rec(index_obj_saved,'to'); | |
walk_through_TOC(index_obj_saved,null,0); | walk_through_TOC(index_obj_saved,null,0); | ||
| − | index_obj_saved = | + | index_obj_saved = TOC_functions.utf8_to_base64(JSON.stringify(index_obj_saved)); |
$ci('#TOC_contents').val(btoa(index_obj_saved)) | $ci('#TOC_contents').val(btoa(index_obj_saved)) | ||
| − | $ci('#pf_free_text').val(` | + | $ci('#pf_free_text').val(`<!-- |
| − | <!-- | ||
The content of this page is created automatically. | The content of this page is created automatically. | ||
Don't edit it without the form, since any additional content | Don't edit it without the form, since any additional content | ||
Revision as of 16:37, 17 July 2020