Commit 593aa76e authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_svg_editor: fix lint errors

parent 533a81c4
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts52791583.29</string> </value> <value> <string>ts53368071.05</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
\n \n
<script type="text/javascript" src="embedapi.js"></script>\n <script type="text/javascript" src="embedapi.js"></script>\n
<script type="text/javascript">\n <script type="text/javascript">\n
// <!--\n
var svgCanvas = null;\n var svgCanvas = null;\n
\n \n
function init_embed() {\n function init_embed() {\n
...@@ -72,6 +73,7 @@ ...@@ -72,6 +73,7 @@
function saveSvg() { \n function saveSvg() { \n
svgCanvas.getSvgString()(handleSvgData);\n svgCanvas.getSvgString()(handleSvgData);\n
}\n }\n
// -->\n
</script>\n </script>\n
\n \n
\n \n
...@@ -91,7 +93,7 @@ ...@@ -91,7 +93,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>1940</int> </value> <value> <int>1965</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts52850649.25</string> </value> <value> <string>ts53367911.6</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -55,17 +55,17 @@ methodDraw.addExtension("Arrows", function(S) {\n ...@@ -55,17 +55,17 @@ methodDraw.addExtension("Arrows", function(S) {\n
]\n ]\n
};\n };\n
\n \n
var prefix = \'se_arrow_\';\n var prefix = \'se_arrow_\', arrowprefix;\n
if (randomize_ids) {\n if (randomize_ids) {\n
var arrowprefix = prefix + nonce + \'_\';\n arrowprefix = prefix + nonce + \'_\';\n
} else {\n } else {\n
var arrowprefix = prefix;\n arrowprefix = prefix;\n
}\n }\n
\n \n
var pathdata = {\n var pathdata = {\n
fw: {d:"m0,0l10,5l-10,5l5,-5l-5,-5z", refx:8, id: arrowprefix + \'fw\'},\n fw: {d:"m0,0l10,5l-10,5l5,-5l-5,-5z", refx:8, id: arrowprefix + \'fw\'},\n
bk: {d:"m10,0l-10,5l10,5l-5,-5l5,-5z", refx:2, id: arrowprefix + \'bk\'}\n bk: {d:"m10,0l-10,5l10,5l-5,-5l5,-5z", refx:2, id: arrowprefix + \'bk\'}\n
}\n };\n
\n \n
function setArrowNonce(window, n) {\n function setArrowNonce(window, n) {\n
randomize_ids = true;\n randomize_ids = true;\n
...@@ -294,7 +294,8 @@ methodDraw.addExtension("Arrows", function(S) {\n ...@@ -294,7 +294,8 @@ methodDraw.addExtension("Arrows", function(S) {\n
var i = selElems.length;\n var i = selElems.length;\n
var marker_elems = [\'line\',\'path\',\'polyline\',\'polygon\'];\n var marker_elems = [\'line\',\'path\',\'polyline\',\'polygon\'];\n
\n \n
while(i--) {\n while(i) {\n
i -= 1;\n
var elem = selElems[i];\n var elem = selElems[i];\n
if(elem && $.inArray(elem.tagName, marker_elems) != -1) {\n if(elem && $.inArray(elem.tagName, marker_elems) != -1) {\n
if(opts.selectedElement && !opts.multiselected) {\n if(opts.selectedElement && !opts.multiselected) {\n
...@@ -334,7 +335,7 @@ methodDraw.addExtension("Arrows", function(S) {\n ...@@ -334,7 +335,7 @@ methodDraw.addExtension("Arrows", function(S) {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>8060</int> </value> <value> <int>8082</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
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