That's simpler.
This commit is contained in:
parent
1c71b4109d
commit
751fef81dd
@ -5720,9 +5720,7 @@
|
||||
close: function() {
|
||||
var i, _i, _len, _ref;
|
||||
if (QR.req) {
|
||||
if (!QR.req.isUploadFinished) {
|
||||
QR.abort();
|
||||
}
|
||||
QR.abort();
|
||||
return;
|
||||
}
|
||||
QR.nodes.el.hidden = true;
|
||||
@ -6523,9 +6521,7 @@
|
||||
e.preventDefault();
|
||||
}
|
||||
if (QR.req) {
|
||||
if (!QR.req.isUploadFinished) {
|
||||
QR.abort();
|
||||
}
|
||||
QR.abort();
|
||||
return;
|
||||
}
|
||||
if (QR.cooldown.seconds) {
|
||||
@ -6704,7 +6700,7 @@
|
||||
return QR.status();
|
||||
},
|
||||
abort: function() {
|
||||
if (QR.req) {
|
||||
if (QR.req && !QR.req.isUploadFinished) {
|
||||
QR.req.abort();
|
||||
delete QR.req;
|
||||
QR.notifications.push(new Notification('info', 'QR upload aborted.', 5));
|
||||
|
||||
@ -63,7 +63,7 @@ QR =
|
||||
error: err
|
||||
close: ->
|
||||
if QR.req
|
||||
QR.abort() unless QR.req.isUploadFinished
|
||||
QR.abort()
|
||||
return
|
||||
QR.nodes.el.hidden = true
|
||||
QR.cleanNotifications()
|
||||
@ -740,7 +740,7 @@ QR =
|
||||
e?.preventDefault()
|
||||
|
||||
if QR.req
|
||||
QR.abort() unless QR.req.isUploadFinished
|
||||
QR.abort()
|
||||
return
|
||||
|
||||
if QR.cooldown.seconds
|
||||
@ -933,7 +933,7 @@ QR =
|
||||
QR.status()
|
||||
|
||||
abort: ->
|
||||
if QR.req
|
||||
if QR.req and !QR.req.isUploadFinished
|
||||
QR.req.abort()
|
||||
delete QR.req
|
||||
QR.notifications.push new Notification 'info', 'QR upload aborted.', 5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user