Commit 2c3c583f authored by Gabriel Monnerat's avatar Gabriel Monnerat

rename files and added comments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 498c2d99
...@@ -50,7 +50,11 @@ ...@@ -50,7 +50,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return context.getTextContent()\n <value> <string>"""\n
Script used by JavaScript to get the text of document.\n
This way is used to the JavaScript insert the data in SVG Editor.\n
"""\n
return context.getTextContent()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -105,7 +109,7 @@ ...@@ -105,7 +109,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebIllustration_getTextContent</string> </value> <value> <string>Base_getTextContentWrapper</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -50,7 +50,10 @@ ...@@ -50,7 +50,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>text_content = context.REQUEST.get("text")\n <value> <string>"""\n
wrapper to JQuery insert the data in the current document\n
"""\n
text_content = context.REQUEST.get("text")\n
if text_content is not None:\n if text_content is not None:\n
context.edit(text_content=text_content)\n context.edit(text_content=text_content)\n
</string> </value> </string> </value>
...@@ -109,7 +112,7 @@ if text_content is not None:\n ...@@ -109,7 +112,7 @@ if text_content is not None:\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebIllustration_setTextContent</string> </value> <value> <string>Base_setTextContentWrapper</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -44,22 +44,17 @@ ...@@ -44,22 +44,17 @@
svg_canvas = window.frames["svgframe"].svgCanvas;\n svg_canvas = window.frames["svgframe"].svgCanvas;\n
$.ajax({\n $.ajax({\n
type: "POST",\n type: "POST",\n
url: "WebIllustration_setTextContent",\n url: "Base_setTextContentWrapper",\n
data: "text=" + svg_canvas.getSvgString(),\n data: "text=" + svg_canvas.getSvgString(),\n
});\n });\n
});\n });\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n svg_canvas = window.frames["svgframe"].svgCanvas;\n
var text_content = $.ajax({\n var text_content = $.ajax({\n
url: "WebIllustration_getTextContent",\n url: "Base_getTextContentWrapper",\n
async: false\n async: false\n
}).responseText;\n }).responseText;\n
svg_canvas.setSvgString(text_content);\n svg_canvas.setSvgString(text_content);\n
})\n })</unicode> </value>
\n
function clickSaveButton() {\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n
document.forms[0].elements[\'field_my_text_content\'].value = svg_canvas.getSvgString();\n
}</unicode> </value>
</item> </item>
<item> <item>
<key> <string>content_type</string> </key> <key> <string>content_type</string> </key>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>svg_support</string> </value> <value> <string>svg_editor_support</string> </value>
</item> </item>
<item> <item>
<key> <string>output_encoding</string> </key> <key> <string>output_encoding</string> </key>
......
11 13
\ 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