diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 89d770830..8402f8522 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -5068,7 +5068,8 @@ if (quote) { QR.quote.call($('input', $('.post.highlight', thread) || thread)); } - return QR.nodes.com.focus(); + QR.nodes.com.focus(); + return $.rmClass($('.qr-shortcut'), 'disabled'); }, tags: function(tag, ta) { var range, selEnd, selStart, value; @@ -6602,6 +6603,7 @@ QR.cleanNotifications(); d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); + $.toggleClass($('.qr-shortcut'), 'disabled'); _ref = QR.posts; for (_i = 0, _len = _ref.length; _i < _len; _i++) { i = _ref[_i]; diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index af5875e89..983a0807f 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5060,7 +5060,8 @@ if (quote) { QR.quote.call($('input', $('.post.highlight', thread) || thread)); } - return QR.nodes.com.focus(); + QR.nodes.com.focus(); + return $.rmClass($('.qr-shortcut'), 'disabled'); }, tags: function(tag, ta) { var range, selEnd, selStart, value; @@ -6594,6 +6595,7 @@ QR.cleanNotifications(); d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); + $.toggleClass($('.qr-shortcut'), 'disabled'); _ref = QR.posts; for (_i = 0, _len = _ref.length; _i < _len; _i++) { i = _ref[_i]; diff --git a/builds/crx/script.js b/builds/crx/script.js index 758e571d8..fb4c06ff8 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4981,7 +4981,8 @@ if (quote) { QR.quote.call($('input', $('.post.highlight', thread) || thread)); } - return QR.nodes.com.focus(); + QR.nodes.com.focus(); + return $.rmClass($('.qr-shortcut'), 'disabled'); }, tags: function(tag, ta) { var range, selEnd, selStart, value; @@ -6521,6 +6522,7 @@ QR.cleanNotifications(); d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); + $.toggleClass($('.qr-shortcut'), 'disabled'); _ref = QR.posts; for (_i = 0, _len = _ref.length; _i < _len; _i++) { i = _ref[_i]; diff --git a/src/code/misc/keybinds.coffee b/src/code/misc/keybinds.coffee index ad136eeb1..df2bd3ede 100644 --- a/src/code/misc/keybinds.coffee +++ b/src/code/misc/keybinds.coffee @@ -132,6 +132,7 @@ Keybinds = if quote QR.quote.call $ 'input', $('.post.highlight', thread) or thread QR.nodes.com.focus() + $.rmClass $('.qr-shortcut'), 'disabled' tags: (tag, ta) -> value = ta.value diff --git a/src/code/posting/qr.coffee b/src/code/posting/qr.coffee index e46b8f8ff..91cef3713 100644 --- a/src/code/posting/qr.coffee +++ b/src/code/posting/qr.coffee @@ -79,6 +79,7 @@ QR = QR.cleanNotifications() d.activeElement.blur() $.rmClass QR.nodes.el, 'dump' + $.toggleClass $('.qr-shortcut'), 'disabled' for i in QR.posts QR.posts[0].rm() QR.cooldown.auto = false