Commit 0173d28f authored by JC Brand's avatar JC Brand

Clear "add contact" form after submission.

parent b9cdf6b7
......@@ -209,6 +209,7 @@
const data = new FormData(ev.target),
jid = data.get('jid'),
name = data.get('name');
ev.target.reset();
if (!jid || _.compact(jid.split('@')).length < 2) {
this.model.set({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment