Archived
0

MCSM:fix: javascript

This commit is contained in:
2017-04-25 20:23:09 +03:00
parent 1ea44aaef2
commit 41eff1d52f
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ var ServerList = React.createClass({
ce(ServerListItem, {title: 'Server 2 [skywars-1]', players: 6, active: true}),
ce(ServerListItem, {title: 'Server 3 [bedwars-3]', players: 23}),
ce(ServerListItem, {title: 'Server 4', stopped: true}),
ce(ServerListItem, {title: 'Server 5', stopped: true}),
ce(ServerListItem, {title: 'Server 5', stopped: true})
)
)}
});

View File

@@ -15,14 +15,14 @@ var ContentModule = React.createClass({
document.body.appendChild(style);
},
getInitialState: function(){return{
nvScriptReady: 0,
nvScriptReady: 0
}},
componentWillMount: function(){
var _this = this;
this.loadScript("/mcsmanager/components.js",
function(){ _this.setState({nvScriptReady: _this.state.nvScriptReady+1}); console.debug('components - ok'); },
function(){ _this.setState({nvScriptReady: -5}); console.debug('components - error'); },
function(){ _this.setState({nvScriptReady: -5}); console.debug('components - error'); }
);
this.loadScript("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js",