changeset 483:7406f531c279

svg-edit: moved redirection to the page into the action
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 31 Jan 2010 21:52:14 +0100
parents f03ce96a614d
children a04fc9c5d76c
files data/plugin/action/SvgEditor.py htdocs/svg-edit/editor/svg-editor.js
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/SvgEditor.py	Sun Jan 31 20:00:38 2010 +0100
+++ b/data/plugin/action/SvgEditor.py	Sun Jan 31 21:52:14 2010 +0100
@@ -92,7 +92,9 @@
             fpath = AttachFile.getFilename(request, pagename, target).encode(config.charset)
             file(fpath, 'w').write(filecontent.decode('base_64'))
 
-
+        url = Page(request, pagename).url(request)
+        request.http_redirect(url)
+            
     def render(self):
         _ = self._
         request = self.request
--- a/htdocs/svg-edit/editor/svg-editor.js	Sun Jan 31 20:00:38 2010 +0100
+++ b/htdocs/svg-edit/editor/svg-editor.js	Sun Jan 31 21:52:14 2010 +0100
@@ -187,8 +187,6 @@
                    pagename,
                    {'action': "SvgEditor", 'do': "save", 'target': svg_target, 'svg_data': svg_data}
                   );
-            //window.location = pagename;
-            top.window.location = pagename;
 	};
 	
 	// called when we've selected a different element