diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 596a9d497..7a938166b 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -78,7 +78,6 @@ Main = # c.timeEnd "#{name} initialization" # c.timeEnd 'All initializations' - $.on d, 'AddCallback', Main.addCallback $.ready Main.initReady initStyle: -> diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 0a2c0d077..c81f27b17 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -72,12 +72,6 @@ QR = $.before $.id('togglePostFormLink'), link - - $.on d, 'QRGetSelectedPost', ({detail: cb}) -> - cb QR.selected - $.on d, 'QRAddPreSubmitHook', ({detail: cb}) -> - QR.preSubmitHooks.push cb - $.on d, 'paste', QR.paste $.on d, 'dragover', QR.dragOver $.on d, 'drop', QR.dropFile @@ -606,8 +600,6 @@ QR = nodes.flag = flag $.add nodes.form, flag - preSubmitHooks: [] - submit: (e) -> e?.preventDefault() @@ -640,9 +632,6 @@ QR = err = 'No file selected.' else if post.file and thread.fileLimit err = 'Max limit of image replies has been reached.' - else for hook in QR.preSubmitHooks - if err = hook post, thread - break if QR.captcha.isEnabled and !err {challenge, response} = QR.captcha.getOne() diff --git a/src/Posting/QR.post.coffee b/src/Posting/QR.post.coffee index d52b0021c..d3330299b 100644 --- a/src/Posting/QR.post.coffee +++ b/src/Posting/QR.post.coffee @@ -111,7 +111,6 @@ QR.post = class rectList = @nodes.el.parentNode.getBoundingClientRect() @nodes.el.parentNode.scrollLeft += rectEl.left + rectEl.width/2 - rectList.left - rectList.width/2 @load() - $.event 'QRPostSelection', @ load: -> # Load this post's values.