fix javascript
This commit is contained in:
@@ -24,13 +24,13 @@ var BundleTableRow = React.createClass({
|
||||
lastModified: this.props.lastModified
|
||||
}},
|
||||
stateToStr: function(state) {
|
||||
if (state == 1) {return 'UNINSTALLED'}
|
||||
else if (state == 2) {return 'INSTALLED'}
|
||||
else if (state == 4) {return 'RESOLVED'}
|
||||
else if (state == 8) {return 'STARTING'}
|
||||
else if (state == 16) {return 'STOPPING'}
|
||||
else if (state == 32) {return 'ACTIVE'}
|
||||
else {return 'UNKNOW('+state+')'}
|
||||
if (state === 1) {return 'UNINSTALLED'}
|
||||
else if (state === 2) {return 'INSTALLED'}
|
||||
else if (state === 4) {return 'RESOLVED'}
|
||||
else if (state === 8) {return 'STARTING'}
|
||||
else if (state === 16) {return 'STOPPING'}
|
||||
else if (state === 32) {return 'ACTIVE'}
|
||||
else {return 'UNKNOW('+state+')'}
|
||||
},
|
||||
bndUpd: function() {
|
||||
var _this = this;
|
||||
@@ -52,7 +52,7 @@ var BundleTableRow = React.createClass({
|
||||
});
|
||||
},
|
||||
render: function(){
|
||||
vertAlign = {'vertical-align': 'middle'};
|
||||
var vertAlign = {'vertical-align': 'middle'};
|
||||
return(
|
||||
ce('tr', null,
|
||||
ce('td', {style: vertAlign}, this.state.id),
|
||||
|
||||
Reference in New Issue
Block a user