Commit f60cbb7f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Restore officejs launcher

Restore all officejs applications dependencies
parent 48f6f866
......@@ -69,12 +69,6 @@
<none/>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>gadget_erp5.css</string> </value>
......@@ -142,12 +136,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>processing_status_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
......@@ -169,7 +157,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>romain</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -191,8 +179,8 @@
</tuple>
<state>
<tuple>
<float>1406898405.9</float>
<string>GMT</string>
<float>1465381402.54</float>
<string>UTC</string>
</tuple>
</state>
</object>
......@@ -236,7 +224,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.54661.65508.46148</string> </value>
<value> <string>952.4548.25239.8192</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +242,7 @@
</tuple>
<state>
<tuple>
<float>1469624180.63</float>
<float>1466779724.5</float>
<string>UTC</string>
</tuple>
</state>
......@@ -266,61 +254,4 @@
</tuple>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>detect_converted_file</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>romain</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_processing_state</string> </key>
<value> <string>converted</string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1405427673.27</float>
<string>GMT</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
......@@ -8,6 +8,7 @@
<title>${application_title}</title>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="jquerymobile.css">
<link rel="stylesheet" href="gadget_erp5.css">
<script data-renderjs-configuration="application_title" type="text/x-renderjs-configuration">${application_title}</script>
......@@ -17,6 +18,8 @@
<script data-renderjs-configuration="hateoas_url" type="text/x-renderjs-configuration">${hateoas_url}</script>
<script data-renderjs-configuration="frontpage_gadget" type="text/x-renderjs-configuration">${frontpage_gadget}</script>
<script src="jquery.js"></script>
<script src="jquerymobile.js"></script>
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script src="gadget_global.js" ></script>
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.1497.51502.20667</string> </value>
<value> <string>946.64733.4438.11997</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1467031565.3</float>
<float>1447067588.44</float>
<string>UTC</string>
</tuple>
</state>
......
/*globals window, document, RSVP, rJS,
loopEventListener, URI, location, XMLHttpRequest, console*/
loopEventListener, jQuery, URI, location, XMLHttpRequest, console*/
/*jslint indent: 2, maxlen: 80*/
(function (window, document, RSVP, rJS, loopEventListener,
XMLHttpRequest, location, console) {
$, XMLHttpRequest, location, console) {
"use strict";
/////////////////////////////////////////////////////////////////
// Desactivate jQuery Mobile URL management
/////////////////////////////////////////////////////////////////
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
/*
if (navigator.hasOwnProperty('serviceWorker')) {
// Check if a ServiceWorker already controls the site on load
......@@ -210,6 +218,7 @@
g.props = {};
return g.getElement()
.push(function (element) {
$(element).trigger("create");
g.props.loading_counter = 0;
g.props.element = element;
g.props.content_element = element.querySelector('.gadget-content');
......@@ -315,7 +324,10 @@
return gadget.getDeclaredGadget(MAIN_SCOPE)
.push(function (main) {
if (main.render !== undefined) {
return main.render(JSON.parse(gadget.props.m_options_string));
return main.render(JSON.parse(gadget.props.m_options_string))
.push(function () {
$(gadget.props.content_element).trigger("create");
});
}
}, function () {
return;
......@@ -507,6 +519,8 @@
content_container.appendChild(fragment);
element.appendChild(content_container);
$(element).trigger("create");
return updateHeader(gadget);
// XXX Drop notification
// return header_gadget.notifyLoaded();
......@@ -558,5 +572,5 @@
);
});
}(window, document, RSVP, rJS, loopEventListener,
}(window, document, RSVP, rJS, loopEventListener, jQuery,
XMLHttpRequest, location, console));
\ No newline at end of file
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.1547.59762.20957</string> </value>
<value> <string>950.1266.16388.62907</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1467031817.3</float>
<float>1458731136.97</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