changeset 424:0b33069ed160

svg-editor: redirects to the page after saving
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 19 Sep 2009 22:32:49 +0200
parents 9ff65a48bfbd
children cb407ef26818
files htdocs/svg-edit/editor/svg-editor.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/htdocs/svg-edit/editor/svg-editor.js	Sat Sep 19 22:05:32 2009 +0200
+++ b/htdocs/svg-edit/editor/svg-editor.js	Sat Sep 19 22:32:49 2009 +0200
@@ -58,6 +58,8 @@
 	        pagename,
 	        {'action': "SvgEditor", 'do': "save", 'target': svg_target, 'svg_data': svg_data}
 	      );
+	// redirects to the page
+	window.location = location.pathname;
 
 		//window.open("data:image/svg+xml;base64," + Utils.encode64(svg));
 	};