Fix .qr-shortcut not being toggled by certain events
This commit is contained in:
parent
dbdbd8a64c
commit
8926a9636f
@ -5068,7 +5068,8 @@
|
|||||||
if (quote) {
|
if (quote) {
|
||||||
QR.quote.call($('input', $('.post.highlight', thread) || thread));
|
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) {
|
tags: function(tag, ta) {
|
||||||
var range, selEnd, selStart, value;
|
var range, selEnd, selStart, value;
|
||||||
@ -6602,6 +6603,7 @@
|
|||||||
QR.cleanNotifications();
|
QR.cleanNotifications();
|
||||||
d.activeElement.blur();
|
d.activeElement.blur();
|
||||||
$.rmClass(QR.nodes.el, 'dump');
|
$.rmClass(QR.nodes.el, 'dump');
|
||||||
|
$.toggleClass($('.qr-shortcut'), 'disabled');
|
||||||
_ref = QR.posts;
|
_ref = QR.posts;
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
i = _ref[_i];
|
i = _ref[_i];
|
||||||
|
|||||||
@ -5060,7 +5060,8 @@
|
|||||||
if (quote) {
|
if (quote) {
|
||||||
QR.quote.call($('input', $('.post.highlight', thread) || thread));
|
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) {
|
tags: function(tag, ta) {
|
||||||
var range, selEnd, selStart, value;
|
var range, selEnd, selStart, value;
|
||||||
@ -6594,6 +6595,7 @@
|
|||||||
QR.cleanNotifications();
|
QR.cleanNotifications();
|
||||||
d.activeElement.blur();
|
d.activeElement.blur();
|
||||||
$.rmClass(QR.nodes.el, 'dump');
|
$.rmClass(QR.nodes.el, 'dump');
|
||||||
|
$.toggleClass($('.qr-shortcut'), 'disabled');
|
||||||
_ref = QR.posts;
|
_ref = QR.posts;
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
i = _ref[_i];
|
i = _ref[_i];
|
||||||
|
|||||||
@ -4981,7 +4981,8 @@
|
|||||||
if (quote) {
|
if (quote) {
|
||||||
QR.quote.call($('input', $('.post.highlight', thread) || thread));
|
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) {
|
tags: function(tag, ta) {
|
||||||
var range, selEnd, selStart, value;
|
var range, selEnd, selStart, value;
|
||||||
@ -6521,6 +6522,7 @@
|
|||||||
QR.cleanNotifications();
|
QR.cleanNotifications();
|
||||||
d.activeElement.blur();
|
d.activeElement.blur();
|
||||||
$.rmClass(QR.nodes.el, 'dump');
|
$.rmClass(QR.nodes.el, 'dump');
|
||||||
|
$.toggleClass($('.qr-shortcut'), 'disabled');
|
||||||
_ref = QR.posts;
|
_ref = QR.posts;
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
i = _ref[_i];
|
i = _ref[_i];
|
||||||
|
|||||||
@ -132,6 +132,7 @@ Keybinds =
|
|||||||
if quote
|
if quote
|
||||||
QR.quote.call $ 'input', $('.post.highlight', thread) or thread
|
QR.quote.call $ 'input', $('.post.highlight', thread) or thread
|
||||||
QR.nodes.com.focus()
|
QR.nodes.com.focus()
|
||||||
|
$.rmClass $('.qr-shortcut'), 'disabled'
|
||||||
|
|
||||||
tags: (tag, ta) ->
|
tags: (tag, ta) ->
|
||||||
value = ta.value
|
value = ta.value
|
||||||
|
|||||||
@ -79,6 +79,7 @@ QR =
|
|||||||
QR.cleanNotifications()
|
QR.cleanNotifications()
|
||||||
d.activeElement.blur()
|
d.activeElement.blur()
|
||||||
$.rmClass QR.nodes.el, 'dump'
|
$.rmClass QR.nodes.el, 'dump'
|
||||||
|
$.toggleClass $('.qr-shortcut'), 'disabled'
|
||||||
for i in QR.posts
|
for i in QR.posts
|
||||||
QR.posts[0].rm()
|
QR.posts[0].rm()
|
||||||
QR.cooldown.auto = false
|
QR.cooldown.auto = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user