Shift+click on the Quick Reply submit button will now attempt to post regardless of cooldowns or other errors.
This commit is contained in:
parent
58cbca6c46
commit
9eed6ee89e
@ -546,6 +546,7 @@ QR =
|
|||||||
|
|
||||||
$.on nodes.autohide, 'change', QR.toggleHide
|
$.on nodes.autohide, 'change', QR.toggleHide
|
||||||
$.on nodes.close, 'click', QR.close
|
$.on nodes.close, 'click', QR.close
|
||||||
|
$.on nodes.status, 'click', QR.submit
|
||||||
$.on nodes.form, 'submit', QR.submit
|
$.on nodes.form, 'submit', QR.submit
|
||||||
$.on nodes.sjisToggle, 'click', QR.toggleSJIS
|
$.on nodes.sjisToggle, 'click', QR.toggleSJIS
|
||||||
$.on nodes.texButton, 'mousedown', QR.texPreviewShow
|
$.on nodes.texButton, 'mousedown', QR.texPreviewShow
|
||||||
@ -637,6 +638,7 @@ QR =
|
|||||||
|
|
||||||
submit: (e) ->
|
submit: (e) ->
|
||||||
e?.preventDefault()
|
e?.preventDefault()
|
||||||
|
force = e?.shiftKey
|
||||||
|
|
||||||
if QR.req
|
if QR.req
|
||||||
QR.abort()
|
QR.abort()
|
||||||
@ -644,9 +646,12 @@ QR =
|
|||||||
|
|
||||||
$.forceSync 'cooldowns'
|
$.forceSync 'cooldowns'
|
||||||
if QR.cooldown.seconds
|
if QR.cooldown.seconds
|
||||||
QR.cooldown.auto = !QR.cooldown.auto
|
if force
|
||||||
QR.status()
|
QR.cooldown.clear()
|
||||||
return
|
else
|
||||||
|
QR.cooldown.auto = !QR.cooldown.auto
|
||||||
|
QR.status()
|
||||||
|
return
|
||||||
|
|
||||||
post = QR.posts[0]
|
post = QR.posts[0]
|
||||||
post.forceSave()
|
post.forceSave()
|
||||||
@ -679,7 +684,7 @@ QR =
|
|||||||
QR.captcha.setup(!QR.cooldown.auto or d.activeElement is QR.nodes.status)
|
QR.captcha.setup(!QR.cooldown.auto or d.activeElement is QR.nodes.status)
|
||||||
|
|
||||||
QR.cleanNotifications()
|
QR.cleanNotifications()
|
||||||
if err
|
if err and !force
|
||||||
# stop auto-posting
|
# stop auto-posting
|
||||||
QR.cooldown.auto = false
|
QR.cooldown.auto = false
|
||||||
QR.status()
|
QR.status()
|
||||||
|
|||||||
@ -107,6 +107,13 @@ QR.cooldown =
|
|||||||
$.set 'cooldowns', cooldowns, ->
|
$.set 'cooldowns', cooldowns, ->
|
||||||
QR.cooldown.changes = $.dict()
|
QR.cooldown.changes = $.dict()
|
||||||
|
|
||||||
|
clear: ->
|
||||||
|
QR.cooldown.data = $.dict()
|
||||||
|
QR.cooldown.changes = $.dict()
|
||||||
|
QR.cooldown.auto = false
|
||||||
|
QR.cooldown.update()
|
||||||
|
$.queueTask $.delete, 'cooldowns'
|
||||||
|
|
||||||
update: ->
|
update: ->
|
||||||
return unless QR.cooldown.isCounting
|
return unless QR.cooldown.isCounting
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user