More fixes before /delta release

This commit is contained in:
Giulio Cesare Solaroli
2015-07-05 09:09:33 +02:00
parent e6d071a7c1
commit 755df7d360
7 changed files with 12 additions and 9 deletions

View File

@@ -149,10 +149,10 @@ Clipperz.PM.UI.Components.Pages.RegistrationPageClass = React.createClass({
var refName = MochiKit.Base.filter(function (aRefName) { return refs[aRefName].getDOMNode() == anEvent.target}, MochiKit.Base.keys(this.refs))[0];
var newState = {};
if ((event.target.type == 'checkbox') || (event.target.type == 'radio')) {
newState[refName] = event.target.checked;
if ((anEvent.target.type == 'checkbox') || (anEvent.target.type == 'radio')) {
newState[refName] = anEvent.target.checked;
} else {
newState[refName] = event.target.value;
newState[refName] = anEvent.target.value;
}
this.setState(newState);
},