Encode unicode in JSX differently to attempt to fix issue with unicode translation on some non-utf8 systems.
This commit is contained in:
parent
b7bd09bb62
commit
68c1b7cc63
@ -5,8 +5,8 @@ var Checkbox = React.createClass({
|
||||
return (
|
||||
<span className={this.props.className} onClick={this.props.onClick}>
|
||||
{this.props.checked ?
|
||||
<span className="checkbox">☑</span> :
|
||||
<span className="checkbox">☐</span>
|
||||
<span className="checkbox">{ "\u2611" }</span> :
|
||||
<span className="checkbox">{ "\u2610" }</span>
|
||||
}
|
||||
</span>
|
||||
);
|
||||
|
@ -12,7 +12,7 @@ var Nav = React.createClass({
|
||||
<span>
|
||||
{this.props.title}
|
||||
{this.props.showAlert ?
|
||||
<span className="alert">⚠</span> :
|
||||
<span className="alert">{ "\u26a0" }</span> :
|
||||
null
|
||||
}
|
||||
</span>
|
||||
|
@ -64,19 +64,19 @@ var Table = React.createClass({
|
||||
var click = null;
|
||||
if (index == this.state.sortCol) {
|
||||
if (this.state.sortDir < 0) {
|
||||
sort = <span className="sort"> ↑</span>;
|
||||
sort = <span className="sort">{ " \u2191" }</span>;
|
||||
click = function() {
|
||||
this.setState({sortDir: 1});
|
||||
}.bind(this);
|
||||
} else {
|
||||
sort = <span className="sort"> ↓</span>;
|
||||
sort = <span className="sort">{ " \u2193" }</span>;
|
||||
click = function() {
|
||||
this.setState({sortDir: -1});
|
||||
}.bind(this);
|
||||
}
|
||||
} else {
|
||||
if (column.sort) {
|
||||
sort = <span className="sort"> ↕</span>;
|
||||
sort = <span className="sort">{ " \u2195" }</span>;
|
||||
click = function() {
|
||||
this.setState({sortCol: index, sortDir: column.reverse ? 1 : -1});
|
||||
}.bind(this);
|
||||
|
@ -481,7 +481,7 @@ var arcade_management = React.createClass({
|
||||
null
|
||||
}
|
||||
{ this.state.settings_saved[this.state.current_setting] ?
|
||||
<span>✓</span> :
|
||||
<span>{ "\u2713" }</span> :
|
||||
null
|
||||
}
|
||||
</div>
|
||||
|
@ -378,7 +378,7 @@ var settings_view = React.createClass({
|
||||
null
|
||||
}
|
||||
{ this.state.options_saved[this.state.version] ?
|
||||
<span>✓</span> :
|
||||
<span>{ "\u2713" }</span> :
|
||||
null
|
||||
}
|
||||
</div> : null
|
||||
|
@ -389,7 +389,7 @@ var settings_view = React.createClass({
|
||||
null
|
||||
}
|
||||
{ this.state.theme_saved[this.state.version] ?
|
||||
<span>✓</span> :
|
||||
<span>{ "\u2713" }</span> :
|
||||
null
|
||||
}
|
||||
</div>
|
||||
@ -429,7 +429,7 @@ var settings_view = React.createClass({
|
||||
null
|
||||
}
|
||||
{ this.state.menu_saved[this.state.version] ?
|
||||
<span>✓</span> :
|
||||
<span>{ "\u2713" }</span> :
|
||||
null
|
||||
}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user