fix event-recycling bug and mend history viz changes

pull/21833/head
Matthew Hodgson 2016-03-25 01:12:16 +00:00
parent c3dd9a4b17
commit a3dcd24e4a
1 changed files with 2 additions and 1 deletions

View File

@ -251,6 +251,7 @@ module.exports = React.createClass({
// cancel the click unless the user confirms it
ev.preventDefault();
var value = ev.target.value;
Modal.createDialog(QuestionDialog, {
title: "Privacy warning",
@ -263,7 +264,7 @@ module.exports = React.createClass({
onFinished: function(confirmed) {
if (confirmed) {
self.setState({
history_visibility: ev.target.value
history_visibility: value
});
}
},