Commit 8eef586d authored by Gabriel Monnerat's avatar Gabriel Monnerat

added code prevent default action of button.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf6f5145
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <unicode>$(document).ready(function(){\n <value> <unicode>$(document).ready(function(){\n
$("button.save").click(function(){\n $("button.save").click(function(event){\n
event.preventDefault();\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n svg_canvas = window.frames["svgframe"].svgCanvas;\n
$.ajax({\n $.ajax({\n
type: "POST",\n type: "POST",\n
......
19 20
\ 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