Use the input event instead of the textInput, which is lighter and Fx12 will support it.
This commit is contained in:
parent
83dc49c30b
commit
bdf4ee8e08
@ -1806,7 +1806,7 @@
|
|||||||
for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
|
for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
|
||||||
name = _ref2[_j];
|
name = _ref2[_j];
|
||||||
input = $("[name=" + name + "]", qr.el);
|
input = $("[name=" + name + "]", qr.el);
|
||||||
_ref3 = ['textInput', 'keyup', 'change', 'paste'];
|
_ref3 = ['input', 'keyup', 'change', 'paste'];
|
||||||
for (_k = 0, _len3 = _ref3.length; _k < _len3; _k++) {
|
for (_k = 0, _len3 = _ref3.length; _k < _len3; _k++) {
|
||||||
event = _ref3[_k];
|
event = _ref3[_k];
|
||||||
$.on(input, event, function() {
|
$.on(input, event, function() {
|
||||||
|
|||||||
@ -1482,7 +1482,10 @@ qr =
|
|||||||
# save selected reply's data
|
# save selected reply's data
|
||||||
for name in ['name', 'email', 'sub', 'com']
|
for name in ['name', 'email', 'sub', 'com']
|
||||||
input = $ "[name=#{name}]", qr.el
|
input = $ "[name=#{name}]", qr.el
|
||||||
for event in ['textInput', 'keyup', 'change', 'paste']
|
for event in ['input', 'keyup', 'change', 'paste']
|
||||||
|
# The input event replaces keyup, change and paste events.
|
||||||
|
# Firefox 12 will support the input event.
|
||||||
|
# Oprah?
|
||||||
$.on input, event, ->
|
$.on input, event, ->
|
||||||
qr.selected[@name] = @value
|
qr.selected[@name] = @value
|
||||||
# Disable auto-posting if you're typing in the first reply
|
# Disable auto-posting if you're typing in the first reply
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user