Commit 238ff559 authored by Romain Courteaud's avatar Romain Courteaud

erp5_osoe_web_renderjs_ui: do not show the "New Document" submit button

parent 6f9680cb
Pipeline #17789 failed with stage
in 0 seconds
......@@ -4,11 +4,13 @@
"use strict";
rJS(window)
.declareAcquiredMethod("notifySubmit", "notifySubmit")
.declareAcquiredMethod("submitDialogWithCustomDialogMethod",
"submitDialogWithCustomDialogMethod")
.declareMethod('render', function (options) {
return this.changeState({
key: options.key,
erp5_add_list: JSON.stringify(options.erp5_add_list)
erp5_add_list: JSON.stringify(options.erp5_add_list),
action_script: options.action_script
});
})
.onStateChange(function () {
......@@ -67,8 +69,10 @@
.onEvent('click', function (evt) {
if (evt.target.tagName === 'BUTTON') {
this.state.value = evt.target.getAttribute('data-value');
return this.submitDialogWithCustomDialogMethod(
this.state.action_script
);
}
return this.notifySubmit();
}, false);
}(domsugar, window, rJS));
\ No newline at end of file
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>989.60636.39444.34389</string> </value>
<value> <string>995.21419.34087.102</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1612969693.16</float>
<float>1633688572.82</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -670,12 +670,12 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>System Processes</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
<persistent> <string encoding="base64">AAAAAAAAAAs=</string> </persistent>
</value>
</item>
<item>
......@@ -684,7 +684,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>991.18011.47096.21555</string> </value>
<value> <string>994.13854.35574.25361</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -702,7 +702,7 @@
</tuple>
<state>
<tuple>
<float>1618017329.04</float>
<float>1632297084.96</float>
<string>UTC</string>
</tuple>
</state>
......@@ -716,4 +716,31 @@
</dictionary>
</pickle>
</record>
<record id="11" aka="AAAAAAAAAAs=">
<pickle>
<global name="Message" module="Products.ERP5Type.Message"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string>Translation data updated.</string> </value>
</item>
<item>
<key> <string>domain</string> </key>
<value> <string>erp5_ui</string> </value>
</item>
<item>
<key> <string>mapping</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>message</string> </key>
<value> <string>Translation data updated.</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -14,7 +14,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_doSiteAction</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>action_title</string> </key>
......
......@@ -56,6 +56,10 @@
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -129,7 +133,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(\'erp5_add_list\', here.TypesTool_getCategorizedModuleActionInformationDict().get(\'add\', []))]</string> </value>
<value> <string>python: [(\'action_script\', \'Base_doSiteAction\'), (\'erp5_add_list\', here.TypesTool_getCategorizedModuleActionInformationDict().get(\'add\', []))]</string> </value>
</item>
</dictionary>
</pickle>
......
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