Commit 80c02100 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Eteri

[renderjs_ui] Search Editor passes jslint and takes state.focus into account

parent 797f6a6b
...@@ -20,15 +20,12 @@ ...@@ -20,15 +20,12 @@
var gadget = this; var gadget = this;
return gadget.getDeclaredGadget('input') return gadget.getDeclaredGadget('input')
.push(function (input_gadget) { .push(function (input_gadget) {
var focus = false; var focus = gadget.state.focus || false;
var focus;
if (gadget.state.focus === undefined) { if (gadget.state.focus === undefined && !gadget.state.extended_search) {
if (gadget.state.extended_search) { focus = true;
focus = false;
} else {
focus = true;
}
} }
return input_gadget.render({ return input_gadget.render({
type: "search", type: "search",
value: gadget.state.extended_search, value: gadget.state.extended_search,
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>956.58742.58866.48708</string> </value> <value> <string>960.63097.14876.50483</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1488381059.63</float> <float>1501172560.38</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