Commit bc901d2e authored by Sven Franck's avatar Sven Franck

data/app: replace false image paths in externally loaded content

parent eed11bcb
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
}, },
"children": [ "children": [
{"type": "item", "href": "#", "center": [{"type": "h3", "text_i18n":"global_dict.where-we-are"}]}, {"type": "item", "href": "#", "center": [{"type": "h3", "text_i18n":"global_dict.where-we-are"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text_i18n": "global_dict.our-partners"}]} {"type": "item", "href": "#subscription/external", "center": [{"type": "h3", "text_i18n": "global_dict.our-partners"}]}
] ]
} }
] ]
...@@ -297,13 +297,6 @@ ...@@ -297,13 +297,6 @@
] ]
} }
] ]
}, {
"type": "a",
"direct": {
"className": "ui-btn ui-btn-inline ui-shadow ui-btn-icon-right translate center ui-icon-carat-r",
"href": "#subscription/external"
},
"attributes": {"data-i18n": "global_dict.load_more"}
} }
] ]
}, },
......
...@@ -6061,13 +6061,15 @@ ...@@ -6061,13 +6061,15 @@
pass.skip = !pass.url_dict.href && !pass.content_dict.portal_type_source; pass.skip = !pass.url_dict.href && !pass.content_dict.portal_type_source;
pass.no_config = pass.skip || !!pass.content_dict.portal_type_source; pass.no_config = pass.skip || !!pass.content_dict.portal_type_source;
// HACK for Thierry // HACK Thierryfic hack
if (is_html) { if (is_html) {
return util.ajax( return util.ajax(
{"url": "data/" + pass.url_dict.href} {"url": "data/" + pass.url_dict.href}
).then(function(e) { ).then(function(e) {
// Don't look... // Don't look...
var i, len, fragment, response = $.parseHTML(e.target.response); var i, len, fragment, response = $.parseHTML(
e.target.response.replace("/erp5/","/", "g")
);
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
for (i = 0, len = response.length; i < len; i += 1) { for (i = 0, len = response.length; i < len; i += 1) {
......
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