Commit 6e5138d4 authored by Roque's avatar Roque

erp5_web_project_ui: styles for project home pages domsugar

parent 500c9e82
......@@ -6,6 +6,7 @@
<title>Project info gadget</title>
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script type="text/javascript" src="domsugar.js"></script>
<script src="gadget_erp5_page_project_page.js"></script>
<link rel="stylesheet" type="text/css" href="gadget_erp5_page_project.css">
</head>
......
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.22394.11217.38775</string> </value>
<value> <string>982.28062.10213.8174</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>1583832849.31</float>
<float>1584629131.92</float>
<string>UTC</string>
</tuple>
</state>
......
/*jslint nomen: true, indent: 2 */
/*global window, rJS, RSVP, document, ensureArray, DOMParser, XMLSerializer,
SimpleQuery, ComplexQuery, Query*/
SimpleQuery, ComplexQuery, Query, domsugar*/
(function (window, rJS, RSVP, document, ensureArray, DOMParser, XMLSerializer,
SimpleQuery, ComplexQuery, Query) {
SimpleQuery, ComplexQuery, Query, domsugar) {
"use strict";
var VALID_STATE_LIST = ["shared", "released", "published",
......@@ -21,13 +21,12 @@ SimpleQuery, ComplexQuery, Query*/
var parser = new DOMParser(), i,
oSerializer = new XMLSerializer(),
doc = parser.parseFromString(html, "text/html"),
link_list = doc.querySelectorAll("a"),
styles_link = document.createElement('link'),
header = doc.querySelector("head");
styles_link.href = "gadget_erp5_page_project.css";
styles_link.type = "text/css";
styles_link.rel = "stylesheet";
header.appendChild(styles_link);
link_list = doc.querySelectorAll("a");
doc.querySelector("head").appendChild(domsugar('link', {
href: "gadget_erp5_page_project.css",
type: "text/css",
rel: "stylesheet"
}));
for (i = 0; i < link_list.length; i += 1) {
link_list[i].setAttribute('href',
addRedirectionToReference(link_list[i]
......@@ -354,4 +353,4 @@ SimpleQuery, ComplexQuery, Query*/
return true;
});
}(window, rJS, RSVP, document, ensureArray, DOMParser, XMLSerializer, SimpleQuery, ComplexQuery, Query));
\ No newline at end of file
}(window, rJS, RSVP, document, ensureArray, DOMParser, XMLSerializer, SimpleQuery, ComplexQuery, Query, domsugar));
\ No newline at end of file
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.36848.5709.11059</string> </value>
<value> <string>982.41335.49696.64290</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1584457140.37</float>
<float>1584629384.78</float>
<string>UTC</string>
</tuple>
</state>
......
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