changeset 434:89b8539eebd9

svg-edit: bug fix for saving of targets on a subpage
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 26 Sep 2009 19:37:17 +0200
parents c1716a76c223
children fea4aee3658a 39bef21fe550
files htdocs/svg-edit/editor/svg-editor.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/htdocs/svg-edit/editor/svg-editor.js	Thu Sep 24 13:03:02 2009 +0200
+++ b/htdocs/svg-edit/editor/svg-editor.js	Sat Sep 26 19:37:17 2009 +0200
@@ -55,7 +55,7 @@
 	var titlename = window.content.parent.document.title.split('-')[0];
 	titlename = titlename.replace(' ', '');
 	var svg_data = Utils.encode64(svg);
-	var pagename = titlename.split(':')[0];
+	var pagename = location.pathname;
 	var svg_target = titlename.split(':')[1];
 	$.post(
 	        pagename,