Skip to content

Commit

Permalink
Merge pull request #42 from ra100/master
Browse files Browse the repository at this point in the history
Fix save options
  • Loading branch information
alanhamlett authored Jun 30, 2016
2 parents 304aeb2 + 7d90992 commit 97fd59e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var React = require('react');

var Navbar = React.createClass({
var NavBar = React.createClass({

render: function() {

Expand Down Expand Up @@ -86,4 +86,4 @@ var Navbar = React.createClass({

});

module.exports = Navbar;
module.exports = NavBar;
16 changes: 8 additions & 8 deletions assets/js/components/Options.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ var Options = React.createClass({
loggingStyle: items.loggingStyle
});

React.findDOMNode(that.refs.theme).value = items.theme;
React.findDOMNode(that.refs.loggingType).value = items.loggingType;
React.findDOMNode(that.refs.loggingStyle).value = items.loggingStyle;
that.refs.theme.value = items.theme;
that.refs.loggingType.value = items.loggingType;
that.refs.loggingStyle.value = items.loggingStyle;
});
},

Expand All @@ -67,9 +67,9 @@ var Options = React.createClass({
saveSettings: function () {
var that = this;

var theme = React.findDOMNode(this.refs.theme).value.trim();
var loggingType = React.findDOMNode(this.refs.loggingType).value.trim();
var loggingStyle = React.findDOMNode(this.refs.loggingStyle).value.trim();
var theme = this.refs.theme.value.trim();
var loggingType = this.refs.loggingType.value.trim();
var loggingStyle = this.refs.loggingStyle.value.trim();
// Trimming blacklist and whitelist removes blank lines and spaces.
var blacklist = that.state.blacklist.trim();
var whitelist = that.state.whitelist.trim();
Expand All @@ -95,7 +95,7 @@ var Options = React.createClass({
},

_displayBlackOrWhiteList: function () {
var loggingStyle = React.findDOMNode(this.refs.loggingStyle).value.trim();
var loggingStyle = this.refs.loggingStyle.value.trim();

this.setState({loggingStyle: loggingStyle});
},
Expand Down Expand Up @@ -156,7 +156,7 @@ var Options = React.createClass({
<div className="row">
<div className="col-md-12">

<ReactCSSTransitionGroup transitionName="alert">
<ReactCSSTransitionGroup transitionName="alert" transitionEnterTimeout={500} transitionLeaveTimeout={300}>
{alert()}
</ReactCSSTransitionGroup>

Expand Down

0 comments on commit 97fd59e

Please sign in to comment.