Commit 89b58303 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_officejs: Bookmark manager has Hardcoded "add" command

parent d3dc4648
...@@ -80,6 +80,14 @@ ...@@ -80,6 +80,14 @@
command = search.substr(1); command = search.substr(1);
parameter = ""; parameter = "";
} }
if (command === "add") {
return gadget.getUrlFor({
page: "add_bookmark",
url_string: parameter
}).push(function (url) {
window.location.href = url;
});
}
query = { query = {
query: '(reference:"' + command + '")' query: '(reference:"' + command + '")'
+ ' AND portal_type:"' + portal_type + '"', + ' AND portal_type:"' + portal_type + '"',
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.50255.3559.58845</string> </value> <value> <string>960.51909.43417.21213</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1500212133.56</float> <float>1500311903.57</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