Commit e5eb213e authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_svg_editor: fix black svg rendering issue in method-draw

parent 4f7f823b
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts53195793.9</string> </value>
<value> <string>ts53291754.85</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -23,13 +23,22 @@
<value> <string encoding="cdata"><![CDATA[
/*jslint indent: 2 */\n
/*global window, rJS, RSVP, svgCanvas */\n
/*global window, rJS, RSVP, curConfig, svgCanvas */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
\n
curConfig.jGraduatePath = "lib/jgraduate/images/"; // XXX images are not loaded at the good place\n
\n
rJS(window)\n
.ready(function (g) {\n
g.props = {};\n
[].forEach.call(window.document.head.querySelectorAll("base"), function (el) {\n
// XXX GadgetField adds <base> tag to fit to the parent page location, it\'s BAD to remove them.\n
// In the case of method-draw, all component are loaded dynamicaly through ajax requests in\n
// method-draw "folder". By setting a <base> tag, we change the url resolution behavior, and\n
// we break all dynamic links. So, deleting <base> is required.\n
window.document.head.removeChild(el);\n
});\n
var deferred = RSVP.defer();\n
svgCanvas.ready(function () {\n
deferred.resolve();\n
......@@ -62,7 +71,7 @@
</item>
<item>
<key> <string>size</string> </key>
<value> <int>840</int> </value>
<value> <int>1483</int> </value>
</item>
<item>
<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