mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-17 01:12:20 +00:00
Simplify
This commit is contained in:
parent
cb49b15eab
commit
3cb1e600ee
2 changed files with 2 additions and 4 deletions
|
@ -16,7 +16,6 @@ var UserLogin = React.createClass({
|
||||||
if (!id) return;
|
if (!id) return;
|
||||||
React.findDOMNode(this.refs.authorize_id).value = '';
|
React.findDOMNode(this.refs.authorize_id).value = '';
|
||||||
this.authorizeId(id);
|
this.authorizeId(id);
|
||||||
return;
|
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
|
@ -109,7 +108,7 @@ var CurrentUser = React.createClass({
|
||||||
user: data.currentUser
|
user: data.currentUser
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
socket.emit("users:refresh", {});
|
socket.emit("users:refresh");
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
if (this.props.user) {
|
if (this.props.user) {
|
||||||
|
|
|
@ -775,7 +775,6 @@ var UserLogin = React.createClass({displayName: "UserLogin",
|
||||||
if (!id) return;
|
if (!id) return;
|
||||||
React.findDOMNode(this.refs.authorize_id).value = '';
|
React.findDOMNode(this.refs.authorize_id).value = '';
|
||||||
this.authorizeId(id);
|
this.authorizeId(id);
|
||||||
return;
|
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
|
@ -868,7 +867,7 @@ var CurrentUser = React.createClass({displayName: "CurrentUser",
|
||||||
user: data.currentUser
|
user: data.currentUser
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
socket.emit("users:refresh", {});
|
socket.emit("users:refresh");
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
if (this.props.user) {
|
if (this.props.user) {
|
||||||
|
|
Loading…
Reference in a new issue