Commit d14163b6 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Spinner replace the plane, instead of displaying 2 icons

parent 3c2d9277
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<script id="relation-input-template" type="text/x-handlebars-template"> <script id="relation-input-template" type="text/x-handlebars-template">
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset ui-input-has-clear ui-input-has-icon {{readonly}}"> <div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset ui-input-has-clear ui-input-has-icon {{readonly}}">
<input type='text' title="{{title}}" name="{{name}}" autocomplete="off" data-enhanced="true" value="{{value}}" > <input type='text' title="{{title}}" name="{{name}}" autocomplete="off" data-enhanced="true" value="{{value}}" >
<a href="#" tabindex="-1" class="ui-hidden-accessible">&nbsp;</a>
<ul class="ui-listview ui-corner-all search_ul"></ul> <ul class="ui-listview ui-corner-all search_ul"></ul>
</div> </div>
<a href={{href}} tabindex="-1" class="{{class_name}}" >Jump to this document</a> <a href={{href}} tabindex="-1" class="{{class_name}}" >Jump to this document</a>
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>952.37134.18667.46097</string> </value> <value> <string>952.37347.53170.23637</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1468579815.7</float> <float>1468593043.36</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
gadget.props.element.querySelector("input"); gadget.props.element.querySelector("input");
gadget.props.new_tag_div = gadget.props.element.querySelector(".new_tag"); gadget.props.new_tag_div = gadget.props.element.querySelector(".new_tag");
gadget.props.spinner = gadget.props.element.querySelector("a"); gadget.props.spinner = gadget.props.element.querySelector("a");
gadget.props.plane = gadget.props.element.querySelectorAll("a")[1]; gadget.props.plane = gadget.props.element.querySelector("a");
}); });
return queue; return queue;
}) })
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
props.jump_url = []; props.jump_url = [];
ul.innerHTML = ""; ul.innerHTML = "";
if (my_value === "") { if (my_value === "") {
props.spinner.className = searched; props.spinner.className = jump_off;
return; return;
} }
simple_query = new SimpleQuery({ simple_query = new SimpleQuery({
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
value: result.data.rows[i].value[index] value: result.data.rows[i].value[index]
}); });
} }
props.spinner.className = searched; props.spinner.className = jump_off;
html = relation_listview_template({ html = relation_listview_template({
list: list, list: list,
type: type, type: 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>952.37134.18667.46097</string> </value> <value> <string>952.37471.28952.41693</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>1468575353.32</float> <float>1468592850.23</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