Archived
0

fix javascript

This commit is contained in:
2017-05-02 13:58:37 +03:00
parent 20e42c950f
commit 3378c49444
3 changed files with 112 additions and 112 deletions

View File

@@ -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),