Commit 5250c3e8 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix issue to save svg documents

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40074 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a42fdc6e
...@@ -48,7 +48,8 @@ function clickSaveButton(act) {\n ...@@ -48,7 +48,8 @@ function clickSaveButton(act) {\n
// Here we should use an even based approach - and logic in field class\n // Here we should use an even based approach - and logic in field class\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n svg_canvas = window.frames["svgframe"].svgCanvas;\n
svg_canvas.bind("saved", saveToField);\n svg_canvas.bind("saved", saveToField);\n
svg_canvas.save()\n svg_canvas.save();\n
document.forms[0].elements[\'field_my_text_content\'].value = $.sheet.instance[0].getSource(true);\n
} \n } \n
\n \n
function saveToField(window, svg) {\n function saveToField(window, svg) {\n
......
6 7
\ No newline at end of file \ No newline at end of file
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