diff --git a/templates/webclient/editfile.html b/templates/webclient/editfile.html index ad6f6045..897a11ed 100644 --- a/templates/webclient/editfile.html +++ b/templates/webclient/editfile.html @@ -52,7 +52,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
Back {{- if not .ReadOnly}} - + Save Please wait... @@ -159,6 +159,13 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). cmView = cm6.createEditorView(undefined, document.getElementById("editor")); cmView.setState(cm6.createEditorState("{{.Data}}", options)); + var saveBtn = $('#save_button'); + if (saveBtn){ + saveBtn.on("click", function(){ + saveFile(); + }); + } + setInterval(keepAlive, 300000); });