Commit a5b02566 authored by Gabriel Monnerat's avatar Gabriel Monnerat

reload the page manually, because without it, the page is saved the document without the data

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42481 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b914dcee
......@@ -49,16 +49,18 @@
\n
$(document).ready(function(){\n
$("button.save").click(function(event){\n
event.preventDefault();\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n
$.ajax({\n
type: "POST",\n
url: "Base_setTextContentWrapper",\n
data: "text=" + svg_canvas.getSvgString(),\n
});\n
type: "POST",\n
url: "Base_setTextContentWrapper",\n
data: "text=" + svg_canvas.getSvgString(),\n
});\n
window.location.reload();\n
});\n
var text_content = $.ajax({\n
url: "getTextContent",\n
async: false\n
async: false,\n
}).responseText;\n
$("iframe#svgframe").css("border", "0px");\n
})</unicode> </value>
......
23
\ No newline at end of file
24
\ 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