Commit 0a9563e2 authored by Roque's avatar Roque

erp5_officejs: code cleanup

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