wip
This commit is contained in:
8
src/web/app/common/scripts/contains.js
Normal file
8
src/web/app/common/scripts/contains.js
Normal file
@ -0,0 +1,8 @@
|
||||
module.exports = function(parent, child) {
|
||||
let node = child.parentNode;
|
||||
while (node) {
|
||||
if (node == parent) return true;
|
||||
node = node.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
@ -126,7 +126,7 @@
|
||||
this.api('signin', {
|
||||
username: this.refs.username.value
|
||||
password: this.refs.password.value
|
||||
.then =>
|
||||
}).then(() => {
|
||||
location.reload();
|
||||
.catch =>
|
||||
alert 'something happened'
|
||||
|
@ -277,11 +277,11 @@
|
||||
username: username,
|
||||
password: password,
|
||||
'g-recaptcha-response': grecaptcha.getResponse()
|
||||
.then =>
|
||||
}).then(() => {
|
||||
this.api('signin', {
|
||||
username: username
|
||||
password: password
|
||||
.then =>
|
||||
}).then(() => {
|
||||
location.href = CONFIG.url
|
||||
.catch =>
|
||||
alert '何らかの原因によりアカウントの作成に失敗しました。再度お試しください。'
|
||||
|
Reference in New Issue
Block a user