mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-03-27 12:04:41 -05:00
seperated "and" "or" button
This commit is contained in:
parent
4f343d2338
commit
ac3fc6b38e
File diff suppressed because one or more lines are too long
|
|
@ -12,6 +12,7 @@ import loki from 'lokijs';
|
|||
|
||||
@inject((stores, props, context) => props) @observer
|
||||
export default class SearchForm extends React.Component {
|
||||
@observable swamp = "or";
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
|
@ -21,7 +22,6 @@ export default class SearchForm extends React.Component {
|
|||
|
||||
reset = () => {
|
||||
this.type = "";
|
||||
this.swamp = "or";
|
||||
this.stones = {};
|
||||
this.tribes = {};
|
||||
this.elements = {};
|
||||
|
|
@ -81,7 +81,8 @@ export default class SearchForm extends React.Component {
|
|||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<input type="button" value={this.swamp} onClick={(e)=>{this.swamp = (this.swamp == "or" ? "and" : "or"); e.target.value = this.swamp;}}/>
|
||||
<input type="button" value="or" disabled={this.swamp=="or"} onClick={(e)=>this.swamp="or"}/>
|
||||
<input type="button" value="and" disabled={this.swamp=="and"} onClick={(e)=>this.swamp="and"} />
|
||||
<input type="checkbox" ref={(input) => this.elements.fire = input}/><img height="16" className="icon" src={"/src/img/icons/elements/fire.png"} />
|
||||
<input type="checkbox" ref={(input) => this.elements.air = input}/><img height="16" className="icon" src={"/src/img/icons/elements/air.png"} />
|
||||
<input type="checkbox" ref={(input) => this.elements.earth = input}/><img height="16" className="icon" src={"/src/img/icons/elements/earth.png"} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user