Indicate the wait for a response from sys.4chan.org after an upload with some ellipsis.
This commit is contained in:
parent
58da6d4e18
commit
53d3197c6a
@ -1262,7 +1262,7 @@
|
|||||||
value = 404;
|
value = 404;
|
||||||
disabled = true;
|
disabled = true;
|
||||||
} else if (data) {
|
} else if (data) {
|
||||||
if (data.progress != null) value = "" + data.progress + "%";
|
if (data.progress) value = data.progress;
|
||||||
}
|
}
|
||||||
qr.status.input.value = value || 'Submit';
|
qr.status.input.value = value || 'Submit';
|
||||||
return qr.status.input.disabled = disabled || false;
|
return qr.status.input.disabled = disabled || false;
|
||||||
@ -1727,10 +1727,16 @@
|
|||||||
form: form,
|
form: form,
|
||||||
type: 'post',
|
type: 'post',
|
||||||
upCallbacks: {
|
upCallbacks: {
|
||||||
|
onload: function() {
|
||||||
|
return qr.message.send({
|
||||||
|
status: true,
|
||||||
|
progress: '...'
|
||||||
|
});
|
||||||
|
},
|
||||||
onprogress: function(e) {
|
onprogress: function(e) {
|
||||||
return qr.message.send({
|
return qr.message.send({
|
||||||
status: true,
|
status: true,
|
||||||
progress: Math.floor(e.loaded / e.total * 100)
|
progress: "" + (Math.round(e.loaded / e.total * 100)) + "%"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -912,8 +912,8 @@ qr =
|
|||||||
value = 404
|
value = 404
|
||||||
disabled = true
|
disabled = true
|
||||||
else if data
|
else if data
|
||||||
if data.progress?
|
if data.progress
|
||||||
value = "#{data.progress}%"
|
value = data.progress
|
||||||
qr.status.input.value = value or 'Submit'
|
qr.status.input.value = value or 'Submit'
|
||||||
qr.status.input.disabled = disabled or false
|
qr.status.input.disabled = disabled or false
|
||||||
|
|
||||||
@ -1310,10 +1310,14 @@ qr =
|
|||||||
form: form
|
form: form
|
||||||
type: 'post'
|
type: 'post'
|
||||||
upCallbacks:
|
upCallbacks:
|
||||||
|
onload: ->
|
||||||
|
qr.message.send
|
||||||
|
status: true
|
||||||
|
progress: '...'
|
||||||
onprogress: (e) ->
|
onprogress: (e) ->
|
||||||
qr.message.send
|
qr.message.send
|
||||||
status: true
|
status: true
|
||||||
progress: Math.floor e.loaded / e.total * 100
|
progress: "#{Math.round e.loaded / e.total * 100}%"
|
||||||
|
|
||||||
options =
|
options =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user