fix setTimeout
This commit is contained in:
parent
24ea1ca7c0
commit
981a32f877
|
@ -360,7 +360,7 @@ function createPopup() {
|
||||||
<%= erb :common %>
|
<%= erb :common %>
|
||||||
|
|
||||||
function timeout(time, yes, no) {
|
function timeout(time, yes, no) {
|
||||||
var timeout = setTimeout(time, no);
|
var timeout = setTimeout(no, time);
|
||||||
onSuccess(function() {
|
onSuccess(function() {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
yes()
|
yes()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user