Commit 7d1d7817 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_officejs: Add phony parameter in research url to put in browser

* having a "?" before the parameter will allow chromium to encode the search parameter
parent 2259e304
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
.push(function (url) { .push(function (url) {
url = window.location.origin + window.location.pathname url = window.location.origin + window.location.pathname
+ url + '&search=%s'; + url + '&search=%s';
gadget.props.element.getElementsByClassName("search-engine-url")[0].value = url; gadget.props.element.getElementsByClassName("search-engine-url")[0].value = url.replace("#", "#?foo=&");
return gadget.getSetting("option"); return gadget.getSetting("option");
}) })
.push(function (option_dict) { .push(function (option_dict) {
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>cedric.le.ninivin</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.32743.2629.17442</string> </value> <value> <string>960.53098.25350.56115</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1499161566.28</float> <float>1500382833.07</float>
<string>UTC</string> <string>UTC</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