Skip to content

Commit

Permalink
fix bool param
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienp committed Jan 27, 2015
1 parent 02d2ce1 commit 3b26f67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pub/assets/js/hound.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ var SearchBar = React.createClass({
if (this.hasAdvancedValues()) {
this.showAdvanced();
}

q.focus();
},
getInitialState: function() {
Expand Down Expand Up @@ -361,7 +362,7 @@ var SearchBar = React.createClass({
files = this.refs.files.getDOMNode();

q.value = params.q;
i.checked = params.i == 'fosho';
i.checked = ParamValueToBool(params.i);
files.value = params.files;
},
hasAdvancedValues: function() {
Expand Down Expand Up @@ -709,7 +710,7 @@ var App = React.createClass({
var params = ParamsFromUrl();
this.setState({
q: params.q,
i: ParamValueToBool(params.i),
i: params.i,
files: params.files,
repos: params.repos
});
Expand Down

0 comments on commit 3b26f67

Please sign in to comment.