MCPcopy Index your code
hub / github.com/hizzgdev/jsmind / open_file

Function open_file

example/2_features.js:114–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114function open_file() {
115 var file_input = document.getElementById('file_input');
116 var files = file_input.files;
117 if (files.length > 0) {
118 var file_data = files[0];
119 jsMind.util.file.read(file_data, function (jsmind_data, jsmind_name) {
120 var mind = jsMind.util.json.string2json(jsmind_data);
121 if (!!mind) {
122 _jm.show(mind);
123 } else {
124 prompt_info('can not open this file as mindmap');
125 }
126 });
127 } else {
128 prompt_info('please choose a file first');
129 }
130}
131
132function select_node() {
133 var nodeid = 'other';

Callers

nothing calls this directly

Calls 2

prompt_infoFunction · 0.85
showMethod · 0.45

Tested by

no test coverage detected