Commit c1770ec7 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Close the panel when the URL changes

parent 23d2ba93
...@@ -549,6 +549,12 @@ ...@@ -549,6 +549,12 @@
.push(function () {\n .push(function () {\n
return increaseLoadingCounter(gadget);\n return increaseLoadingCounter(gadget);\n
})\n })\n
.push(function () {\n
return gadget.getDeclaredGadget(\'panel\');\n
})\n
.push(function (panel_gadget) {\n
return panel_gadget.close();\n
})\n
.push(function () {\n .push(function () {\n
return gadget.getDeclaredGadget(\'router\');\n return gadget.getDeclaredGadget(\'router\');\n
})\n })\n
...@@ -782,7 +788,7 @@ ...@@ -782,7 +788,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.36079.64367.63812</string> </value> <value> <string>946.36189.7510.51302</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -800,7 +806,7 @@ ...@@ -800,7 +806,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1445350562.81</float> <float>1445354882.08</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -185,6 +185,9 @@ ...@@ -185,6 +185,9 @@
.declareMethod(\'toggle\', function () {\n .declareMethod(\'toggle\', function () {\n
this.props.jelement.panel("toggle");\n this.props.jelement.panel("toggle");\n
})\n })\n
.declareMethod(\'close\', function () {\n
this.props.jelement.panel("close");\n
})\n
\n \n
.declareMethod(\'render\', function () {\n .declareMethod(\'render\', function () {\n
return;\n return;\n
...@@ -344,7 +347,7 @@ ...@@ -344,7 +347,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.30031.56342.5324</string> </value> <value> <string>946.30033.2591.56456</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -362,7 +365,7 @@ ...@@ -362,7 +365,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1444985342.36</float> <float>1445354788.68</float>
<string>GMT</string> <string>GMT</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