Commit 9c17ef4b authored by Vincent Bechu's avatar Vincent Bechu

Revert "fixup"

This reverts commit d68da0a4dda26f37872124bf032b8569b6516b36.
parent 1eaef318
......@@ -596,10 +596,11 @@
function extractSizeAndDispatch() {
return new RSVP.Queue()
.push(function () {
var desktop = window.matchMedia("(min-width: 85em)").matches;
var desktop = window.matchMedia("(min-width: 85em)").matches,
method = desktop ? 'open' : 'close';
gadget.props.panel_argument_list.desktop = desktop;
gadget.props.desktop = desktop;
return route(gadget, 'panel', 'close');
return route(gadget, 'panel', method);
})
.push(function () {
return updatePanel(gadget);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.5299.35727.23022</string> </value>
<value> <string>963.63870.21758.35942</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1513071009.13</float>
<float>1512652755.5</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -49,6 +49,11 @@
visible: false
});
})
.declareMethod('open', function () {
return this.changeState({
visible: true
});
})
.declareMethod('render', function (options) {
var erp5_document = options.erp5_document,
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.5689.59241.23961</string> </value>
<value> <string>963.63751.63771.26828</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1513094084.97</float>
<float>1512646397.6</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