aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/controls/Checkbox.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/Checkbox.js')
-rw-r--r--server/sonar-web/src/main/js/components/controls/Checkbox.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/Checkbox.js b/server/sonar-web/src/main/js/components/controls/Checkbox.js
index 718242c238f..e11fe009f75 100644
--- a/server/sonar-web/src/main/js/components/controls/Checkbox.js
+++ b/server/sonar-web/src/main/js/components/controls/Checkbox.js
@@ -32,24 +32,22 @@ export default class Checkbox extends React.Component {
thirdState: false
};
- componentWillMount () {
+ componentWillMount() {
this.handleClick = this.handleClick.bind(this);
}
- handleClick (e) {
+ handleClick(e) {
e.preventDefault();
e.target.blur();
this.props.onCheck(!this.props.checked);
}
- render () {
+ render() {
const className = classNames('icon-checkbox', {
'icon-checkbox-checked': this.props.checked,
'icon-checkbox-single': this.props.thirdState
});
- return (
- <a id={this.props.id} className={className} href="#" onClick={this.handleClick}/>
- );
+ return <a id={this.props.id} className={className} href="#" onClick={this.handleClick} />;
}
}