Detect abort by check against current request in Quick Reply
This commit is contained in:
parent
e5ab4ffb5b
commit
453c721acc
@ -752,7 +752,7 @@ QR =
|
|||||||
QR.status()
|
QR.status()
|
||||||
|
|
||||||
response: ->
|
response: ->
|
||||||
return if @aborted
|
return if @ isnt QR.req # aborted
|
||||||
delete QR.req
|
delete QR.req
|
||||||
|
|
||||||
post = QR.posts[0]
|
post = QR.posts[0]
|
||||||
@ -871,10 +871,9 @@ QR =
|
|||||||
check()
|
check()
|
||||||
|
|
||||||
abort: ->
|
abort: ->
|
||||||
if QR.req and !QR.req.isUploadFinished and QR.req.abort
|
if (oldReq = QR.req) and !QR.req.isUploadFinished
|
||||||
QR.req.aborted = true
|
|
||||||
QR.req.abort()
|
|
||||||
delete QR.req
|
delete QR.req
|
||||||
|
oldReq.abort()
|
||||||
Captcha.cache.save QR.currentCaptcha if QR.currentCaptcha
|
Captcha.cache.save QR.currentCaptcha if QR.currentCaptcha
|
||||||
delete QR.currentCaptcha
|
delete QR.currentCaptcha
|
||||||
QR.posts[0].unlock()
|
QR.posts[0].unlock()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user