From c19b88c509f61dcc89c25abceb382df1e13357b3 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 27 Jul 2011 15:39:43 +0000 Subject: [PATCH] added ext-server_moinsave.js extension by Reimar (Issue 821) git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2038 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/ext-server_moinsave.js | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 editor/extensions/ext-server_moinsave.js diff --git a/editor/extensions/ext-server_moinsave.js b/editor/extensions/ext-server_moinsave.js new file mode 100644 index 00000000..e12c88da --- /dev/null +++ b/editor/extensions/ext-server_moinsave.js @@ -0,0 +1,56 @@ +/* + * ext-server_moinsave.js + * + * Licensed under the Apache License, Version 2 + * + * Copyright(c) 2010 Alexis Deveria + * 2011 MoinMoin:ReimarBauer + * adopted for moinmoins item storage. it sends in one post png and svg data + * (I agree to dual license my work to additional GPLv2 or later) + * + */ + +svgEditor.addExtension("server_opensave", { + callback: function() { + + var save_svg_action = '/+modify'; + + // Create upload target (hidden iframe) + var target = $('