()
| 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(); |
nothing calls this directly
no test coverage detected