added oninput hook before form submit

This commit is contained in:
Josip Janžić 2014-12-28 12:29:50 +01:00
parent 2c6aab4e9f
commit a469f58cd1
1 changed files with 3 additions and 0 deletions

View File

@ -417,6 +417,9 @@ $(function() {
clear();
return;
}
text = pluginHandle('oninput', text);
if (!text) return;
socket.emit("input", {
target: chat.data("id"),
text: text