From 1c4f49120ea181a56dd60fd04d0bd9e3172ef47d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 11 Jun 2016 19:21:24 -0700 Subject: [PATCH] Make 'Display Upload Progress' optional. --- src/Posting/QR.coffee | 3 ++- src/config/Config.coffee | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index a7511b526..a47035665 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -662,7 +662,8 @@ QR = ) %> extra = form: $.formData formData - upCallbacks: + if Conf['Show Upload Progress'] + extra.upCallbacks = onload: -> # Upload done, waiting for server response. QR.req.isUploadFinished = true diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 8feff9b6a..9249beaa3 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -461,6 +461,11 @@ Config = 'Show the classic name, email, and subject fields in the QR, even when 4chan doesn\'t use them all.' 1 ] + 'Show Upload Progress': [ + true + 'Track progress of file uploads as percentage in submit button.' + 1 + ] 'Cooldown': [ true 'Indicate the remaining time before posting again.'