- removed our copy jquery & bootstrap. using cdn instead
- added search box to the header - made reindex rake task
This commit is contained in:
@@ -36,15 +36,25 @@ var SearchBox = React.createClass({
|
||||
var enterKeyCode = 13;
|
||||
if(e.which == enterKeyCode) {
|
||||
this.doSearch();
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
render: function() {
|
||||
return (<div className="input-group">
|
||||
<input type="text" onKeyPress={this.onKeyPress} className="form-control" value={this.state.q} onChange={this.onSearchBoxChange} placeholder="Pretraga"> </input>
|
||||
<span className="input-group-btn">
|
||||
<button className="btn btn-default" type="button" onClick={this.onSearchClick}>Traži</button>
|
||||
</span>
|
||||
</div>)
|
||||
return (<form style={ {marginLeft: '60px', width: '100%'} } className="form-inline">
|
||||
<div className="left-inner-addon">
|
||||
<i className="glyphicon glyphicon-search"></i>
|
||||
<input style={{width: '75%'}} type="search" onKeyPress={this.onKeyPress}
|
||||
className="search-box form-control"
|
||||
value={this.state.q} onChange={this.onSearchBoxChange}
|
||||
aria-hidden="true">
|
||||
|
||||
</input>
|
||||
|
||||
<button className="btn btn-default search-button" type="button"
|
||||
onClick={this.onSearchClick}>Traži</button>
|
||||
|
||||
</div>
|
||||
</form>)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user