mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 12:41:11 +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;
|
||||
React.findDOMNode(this.refs.authorize_id).value = '';
|
||||
this.authorizeId(id);
|
||||
return;
|
||||
},
|
||||
render: function () {
|
||||
return (
|
||||
|
@ -109,7 +108,7 @@ var CurrentUser = React.createClass({
|
|||
user: data.currentUser
|
||||
});
|
||||
});
|
||||
socket.emit("users:refresh", {});
|
||||
socket.emit("users:refresh");
|
||||
},
|
||||
render: function () {
|
||||
if (this.props.user) {
|
||||
|
|
|
@ -775,7 +775,6 @@ var UserLogin = React.createClass({displayName: "UserLogin",
|
|||
if (!id) return;
|
||||
React.findDOMNode(this.refs.authorize_id).value = '';
|
||||
this.authorizeId(id);
|
||||
return;
|
||||
},
|
||||
render: function () {
|
||||
return (
|
||||
|
@ -868,7 +867,7 @@ var CurrentUser = React.createClass({displayName: "CurrentUser",
|
|||
user: data.currentUser
|
||||
});
|
||||
});
|
||||
socket.emit("users:refresh", {});
|
||||
socket.emit("users:refresh");
|
||||
},
|
||||
render: function () {
|
||||
if (this.props.user) {
|
||||
|
|
Loading…
Reference in a new issue