Commit 5250759d authored by Gabriel Monnerat's avatar Gabriel Monnerat

change function to save the object and reorganized js

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40618 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8d06bd8
......@@ -55,7 +55,7 @@
"""\n
text_content = context.REQUEST.get("text")\n
if text_content is not None:\n
context.edit(text_content=text_content)\n
context.setTextContent(text_content)\n
</string> </value>
</item>
<item>
......
......@@ -39,7 +39,6 @@
<item>
<key> <string>_text</string> </key>
<value> <unicode>$(document).ready(function(){\n
$("iframe#svgframe").css("border", "0px");\n
$("button.save").click(function(){\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n
$.ajax({\n
......@@ -54,6 +53,7 @@
async: false\n
}).responseText;\n
svg_canvas.setSvgString(text_content);\n
$("iframe#svgframe").css("border", "0px");\n
})</unicode> </value>
</item>
<item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment