MCPcopy Index your code
hub / github.com/methodofaction/Method-Draw / cancelOverlays

Function cancelOverlays

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

Source from the content-addressed store, hash-verified

989 }
990
991 var cancelOverlays = function() {
992 $('#dialog_box').hide();
993 if (!editingsource && !docprops && !preferences) {
994 if(cur_context) {
995 svgCanvas.leaveContext();
996 }
997 return;
998 };
999
1000 if (editingsource) {
1001 if (orig_source !== $('#svg_source_textarea').val()) {
1002 $.confirm("Ignore changes made to SVG source?", function(ok) {
1003 if(ok) hideSourceEditor();
1004 });
1005 } else {
1006 hideSourceEditor();
1007 }
1008 }
1009 else if (docprops) {
1010 hideDocProperties();
1011 } else if (preferences) {
1012 hidePreferences();
1013 }
1014 resetScrollPos();
1015 };
1016
1017 var hideSourceEditor = function(){
1018 $('#svg_source_editor').hide();

Callers

nothing calls this directly

Calls 2

$Function · 0.85
hideSourceEditorFunction · 0.85

Tested by

no test coverage detected