()
| 112 | } |
| 113 | |
| 114 | function 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 | |
| 132 | function select_node() { |
| 133 | var nodeid = 'other'; |
nothing calls this directly
no test coverage detected