Commit 2f3d99e2 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Prevent default when clicking on listbox button

parent 45bb4449
...@@ -533,6 +533,7 @@ ...@@ -533,6 +533,7 @@
url, url,
options = {}; options = {};
if (evt.target === sort_button) { if (evt.target === sort_button) {
evt.preventDefault();
url = "gadget_erp5_sort_editor.html"; url = "gadget_erp5_sort_editor.html";
options.sort_column_list = gadget.props.field_json.sort_column_list; options.sort_column_list = gadget.props.field_json.sort_column_list;
options.sort_list = gadget.props.sort_list; options.sort_list = gadget.props.sort_list;
...@@ -540,6 +541,7 @@ ...@@ -540,6 +541,7 @@
return gadget.renderEditorPanel(url, options); return gadget.renderEditorPanel(url, options);
} }
if (evt.target === hide_button) { if (evt.target === hide_button) {
evt.preventDefault();
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
var i, var i,
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>954.28831.10592.12339</string> </value> <value> <string>954.32802.16853.18875</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>1475852314.74</float> <float>1476090462.0</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