1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Merged in AD-456-bug-fix-sorting-menuitem (pull request #84)

Ad 456 bug fix sorting menuitem
This commit is contained in:
diminator 2015-09-29 14:28:28 +02:00
commit 8e62206a21

View File

@ -3,7 +3,6 @@
import React from 'react'; import React from 'react';
import DropdownButton from 'react-bootstrap/lib/DropdownButton'; import DropdownButton from 'react-bootstrap/lib/DropdownButton';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import { getLangText } from '../../utils/lang_utils.js'; import { getLangText } from '../../utils/lang_utils.js';
@ -62,20 +61,22 @@ let PieceListToolbarOrderWidget = React.createClass({
</li> </li>
{this.props.orderParams.map((param) => { {this.props.orderParams.map((param) => {
return ( return (
<MenuItem <div>
key={param} <li
onClick={this.orderBy(param)} key={param}
className="filter-widget-item"> onClick={this.orderBy(param)}
<div className="checkbox-line"> className="filter-widget-item">
<span> <div className="checkbox-line">
{getLangText(param.replace('_', ' '))} <span>
</span> {getLangText(param.replace('_', ' '))}
<input </span>
readOnly <input
type="checkbox" readOnly
checked={param.indexOf(this.props.orderBy) > -1} /> type="checkbox"
</div> checked={param.indexOf(this.props.orderBy) > -1} />
</MenuItem> </div>
</li>
</div>
); );
})} })}
</DropdownButton> </DropdownButton>