Add "textInput" and "paste" events to the list of event listeners used to save inputs' values.
"textInput" is supposed to be enough, but, well, you know... >2012 >Gecko Close #269.
This commit is contained in:
parent
558d65b15d
commit
b3dd24ed2e
@ -1704,7 +1704,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
var e, fileInput, input, mimeTypes, name, spoiler, ta, thread, threads, _i, _j, _len, _len2, _ref, _ref2;
|
var e, event, fileInput, input, mimeTypes, name, spoiler, ta, thread, threads, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3;
|
||||||
qr.el = ui.dialog('qr', 'top:0;right:0;', '\
|
qr.el = ui.dialog('qr', 'top:0;right:0;', '\
|
||||||
<div class=move>\
|
<div class=move>\
|
||||||
Quick Reply <input type=checkbox id=autohide title=Auto-hide>\
|
Quick Reply <input type=checkbox id=autohide title=Auto-hide>\
|
||||||
@ -1780,12 +1780,13 @@
|
|||||||
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);
|
||||||
$.on(input, 'keyup', function() {
|
_ref3 = ['textInput', 'keyup', 'change', 'paste'];
|
||||||
return qr.selected[this.name] = this.value;
|
for (_k = 0, _len3 = _ref3.length; _k < _len3; _k++) {
|
||||||
});
|
event = _ref3[_k];
|
||||||
$.on(input, 'change', function() {
|
$.on(input, event, function() {
|
||||||
return qr.selected[this.name] = this.value;
|
return qr.selected[this.name] = this.value;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$.sync('qr.persona', function(persona) {
|
$.sync('qr.persona', function(persona) {
|
||||||
var key, val, _results;
|
var key, val, _results;
|
||||||
|
|||||||
@ -1414,8 +1414,8 @@ 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
|
||||||
$.on input, 'keyup', -> qr.selected[@name] = @value
|
for event in ['textInput', 'keyup', 'change', 'paste']
|
||||||
$.on input, 'change', -> qr.selected[@name] = @value
|
$.on input, event, -> qr.selected[@name] = @value
|
||||||
# sync between tabs
|
# sync between tabs
|
||||||
$.sync 'qr.persona', (persona) ->
|
$.sync 'qr.persona', (persona) ->
|
||||||
return unless qr.el.hidden
|
return unless qr.el.hidden
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user