Commit 2b3b9358 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_office_support_request_ui: accept smaller screens

parent c9aceb3f
...@@ -90,7 +90,6 @@ ...@@ -90,7 +90,6 @@
} }
} }
} }
if (modification_dict.hasOwnProperty("global")) { if (modification_dict.hasOwnProperty("global")) {
queue queue
.push(function () { .push(function () {
...@@ -129,7 +128,6 @@ ...@@ -129,7 +128,6 @@
return context.listenResize(); return context.listenResize();
}); });
} }
if ((this.state.global === true) && if ((this.state.global === true) &&
(modification_dict.hasOwnProperty("desktop") || (modification_dict.hasOwnProperty("desktop") ||
modification_dict.hasOwnProperty("editable") || modification_dict.hasOwnProperty("editable") ||
...@@ -178,7 +176,6 @@ ...@@ -178,7 +176,6 @@
result_view_list = [], result_view_list = [],
workflow_list = JSON.parse(gadget.state.workflow_list), workflow_list = JSON.parse(gadget.state.workflow_list),
view_list = JSON.parse(gadget.state.view_list); view_list = JSON.parse(gadget.state.view_list);
for (i = 0; i < workflow_list.length; i += 1) { for (i = 0; i < workflow_list.length; i += 1) {
result_workflow_list.push({ result_workflow_list.push({
title: workflow_list[i].title, title: workflow_list[i].title,
...@@ -219,7 +216,7 @@ ...@@ -219,7 +216,7 @@
event, event,
context = this; context = this;
function extractSizeAndDispatch() { function extractSizeAndDispatch() {
if (window.matchMedia("(min-width: 90em)").matches) { if (window.matchMedia("(min-width: 767px)").matches) {
return context.changeState({ return context.changeState({
desktop: true desktop: true
}); });
......
...@@ -152,11 +152,13 @@ ...@@ -152,11 +152,13 @@
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -200,12 +202,14 @@ ...@@ -200,12 +202,14 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
</tuple> </value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -234,7 +238,7 @@ ...@@ -234,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>984.51645.41378.19729</string> </value> <value> <string>985.34894.4424.47172</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +256,7 @@ ...@@ -252,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1593352467.41</float> <float>1595897431.02</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
...@@ -268,11 +272,13 @@ ...@@ -268,11 +272,13 @@
</record> </record>
<record id="5" aka="AAAAAAAAAAU="> <record id="5" aka="AAAAAAAAAAU=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -320,7 +326,9 @@ ...@@ -320,7 +326,9 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
</tuple> </value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
</ZopeData> </ZopeData>
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