Fix .qr-shortcut not being toggled by certain events

This commit is contained in:
Jordan Bates 2013-04-18 08:28:43 -07:00
parent dbdbd8a64c
commit 8926a9636f
5 changed files with 11 additions and 3 deletions

View File

@ -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];

View File

@ -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];

View File

@ -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];

View File

@ -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

View File

@ -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