MCSM:fix: javascript
This commit is contained in:
@@ -82,7 +82,7 @@ var ServerList = React.createClass({
|
|||||||
ce(ServerListItem, {title: 'Server 2 [skywars-1]', players: 6, active: true}),
|
ce(ServerListItem, {title: 'Server 2 [skywars-1]', players: 6, active: true}),
|
||||||
ce(ServerListItem, {title: 'Server 3 [bedwars-3]', players: 23}),
|
ce(ServerListItem, {title: 'Server 3 [bedwars-3]', players: 23}),
|
||||||
ce(ServerListItem, {title: 'Server 4', stopped: true}),
|
ce(ServerListItem, {title: 'Server 4', stopped: true}),
|
||||||
ce(ServerListItem, {title: 'Server 5', stopped: true}),
|
ce(ServerListItem, {title: 'Server 5', stopped: true})
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ var ContentModule = React.createClass({
|
|||||||
document.body.appendChild(style);
|
document.body.appendChild(style);
|
||||||
},
|
},
|
||||||
getInitialState: function(){return{
|
getInitialState: function(){return{
|
||||||
nvScriptReady: 0,
|
nvScriptReady: 0
|
||||||
}},
|
}},
|
||||||
componentWillMount: function(){
|
componentWillMount: function(){
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
this.loadScript("/mcsmanager/components.js",
|
this.loadScript("/mcsmanager/components.js",
|
||||||
function(){ _this.setState({nvScriptReady: _this.state.nvScriptReady+1}); console.debug('components - ok'); },
|
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",
|
this.loadScript("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user