MCPcopy
hub / github.com/methodofaction/Method-Draw / saveChanges

Function saveChanges

src/js/method-draw.js:908–913  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

906 if (!editingsource) return;
907
908 var saveChanges = function() {
909 svgCanvas.clearSelection();
910 hideSourceEditor();
911 zoomImage();
912 prepPaints();
913 }
914
915 if (!svgCanvas.setSvgString($('#svg_source_textarea').val())) {
916 $.confirm("There were parsing errors in your SVG source.\nRevert back to original SVG source?", function(ok) {

Callers 1

saveSourceEditorFunction · 0.70

Calls 3

hideSourceEditorFunction · 0.85
zoomImageFunction · 0.85
prepPaintsFunction · 0.85

Tested by

no test coverage detected