Commit 570c4df1 authored by Roque's avatar Roque

erp5_officejs: minor code cleanup

parent 110a60dd
/*global window, rJS */ /*global window, rJS */
/*jslint nomen: true, indent: 2, maxerr: 3 */ /*jslint nomen: true, indent: 2, maxerr: 3 */
(function (document, window, rJS, RSVP) { (function (window, rJS) {
"use strict"; "use strict";
rJS(window) rJS(window)
...@@ -62,4 +62,4 @@ ...@@ -62,4 +62,4 @@
}); });
}); });
}(document, window, rJS, RSVP)); }(window, rJS));
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>975.16169.27016.26641</string> </value> <value> <string>975.16238.52027.41796</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1556113349.07</float> <float>1556116738.19</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
var gadget = this, var gadget = this,
gadget_utils, jio_document; gadget_utils,
jio_document;
return gadget.declareGadget(common_utils_gadget_url) return gadget.declareGadget(common_utils_gadget_url)
.push(function (result) { .push(function (result) {
gadget_utils = result; gadget_utils = result;
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>975.16183.49695.48503</string> </value> <value> <string>975.16237.58964.50022</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1556115863.74</float> <float>1556122084.05</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
/*global window, rJS */ /*global document, window, rJS, RSVP */
/*jslint nomen: true, indent: 2, maxerr: 3 */ /*jslint nomen: true, indent: 2, maxerr: 3 */
(function (document, window, rJS, RSVP) { (function (document, window, rJS, RSVP) {
"use strict"; "use strict";
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>975.16184.31473.12014</string> </value> <value> <string>975.16239.52422.35396</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1556114597.52</float> <float>1556116804.34</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
"use strict"; "use strict";
var common_utils_gadget_url = "gadget_officejs_common_utils.html", var common_utils_gadget_url = "gadget_officejs_common_utils.html",
gadget_utils, action_reference, action_type, action_gadget; gadget_utils,
action_reference,
action_type,
action_gadget;
rJS(window) rJS(window)
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
...@@ -84,8 +87,7 @@ ...@@ -84,8 +87,7 @@
var gadget = this, var gadget = this,
jio_key = options[0], jio_key = options[0],
//target_url = options[1], //target_url = options[1],
content_dict = options[2], content_dict = options[2];
submit_code = gadget.state.submit_code;
if (action_type === "object_jio_js_script") { if (action_type === "object_jio_js_script") {
action_gadget.handleSubmit(gadget, jio_key, content_dict); action_gadget.handleSubmit(gadget, jio_key, content_dict);
} }
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>975.16180.59466.25548</string> </value> <value> <string>975.16237.2302.57053</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1556113276.28</float> <float>1556116639.92</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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