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

Function add_image_node

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

Source from the content-addressed store, hash-verified

194);
195
196function add_image_node() {
197 var selected_node = _jm.get_selected_node(); // as parent of new node
198 if (!selected_node) {
199 prompt_info('please select a node first.');
200 return;
201 }
202
203 imageChooser.focus();
204 imageChooser.click();
205}
206
207function modify_node() {
208 var selected_id = get_selected_nodeid();

Callers

nothing calls this directly

Calls 2

prompt_infoFunction · 0.85
get_selected_nodeMethod · 0.80

Tested by

no test coverage detected