Trigger onchange in ksearch_input_replace() on both supported input types

pull/5838/head
Aleksander Machniak 8 years ago
parent feb8e99062
commit 2ba2b1828c

@ -5680,9 +5680,6 @@ function rcube_webmail()
// here we assume there's only one text node // here we assume there's only one text node
if (node.length) { if (node.length) {
$(node)[0].textContent = to; $(node)[0].textContent = to;
// run onchange action on the element
$(input).change();
} }
} }
else { else {
@ -5696,6 +5693,9 @@ function rcube_webmail()
// set caret to insert pos // set caret to insert pos
this.set_caret_pos(input, p + to.length); this.set_caret_pos(input, p + to.length);
} }
// run onchange action on the element
$(input).change();
}; };
this.ksearch_click = function(node) this.ksearch_click = function(node)

Loading…
Cancel
Save