Commit 0a9563e2 authored by Roque's avatar Roque

erp5_officejs: code cleanup

parent affec7de
...@@ -93,8 +93,7 @@ ...@@ -93,8 +93,7 @@
.onStateChange(function () { .onStateChange(function () {
var fragment = document.createElement('div'), var fragment = document.createElement('div'),
gadget = this, gadget = this;
options;
while (this.element.firstChild) { while (this.element.firstChild) {
this.element.removeChild(this.element.firstChild); this.element.removeChild(this.element.firstChild);
} }
...@@ -118,7 +117,8 @@ ...@@ -118,7 +117,8 @@
//target_url = options[1], //target_url = options[1],
content_dict = options[2], content_dict = options[2],
fragment = document.createElement('div'), fragment = document.createElement('div'),
action_gadget_url, jio_key; action_gadget_url,
jio_key;
if (gadget.state.valid_action) { if (gadget.state.valid_action) {
action_gadget_url = gadget.state.form_definition.fields_raw_properties.gadget_field_action_js_script.values.gadget_url; action_gadget_url = gadget.state.form_definition.fields_raw_properties.gadget_field_action_js_script.values.gadget_url;
gadget.element.appendChild(fragment); gadget.element.appendChild(fragment);
...@@ -146,10 +146,7 @@ ...@@ -146,10 +146,7 @@
}); });
}); });
} else { } else {
return gadget.notifySubmitted({message: 'Could not perform this action: configuration error', status: 'fail'}) return gadget.notifySubmitted({message: 'Could not perform this action: configuration error', status: 'fail'});
.push(function () {
return;
});
} }
}); });
......
...@@ -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.40721.35496.30668</string> </value> <value> <string>975.61078.33779.341</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>1557500271.45</float> <float>1558720717.67</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