MCPcopy
hub / github.com/nwutils/nw-sample-apps / handleSaveButton

Function handleSaveButton

mini-code-edit/editor.js:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102function handleSaveButton() {
103 if (fileEntry && hasWriteAccess) {
104 writeEditorToFile(fileEntry);
105 } else {
106 $("#saveFile").trigger("click");
107 }
108}
109
110function initContextMenu() {
111 menu = new gui.Menu();

Callers 1

editor.jsFile · 0.85

Calls 2

writeEditorToFileFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected