controlbox: have only one dropdown menu open at one time.

This commit is contained in:
JC Brand 2017-07-21 20:10:32 +02:00
parent bfc1e99694
commit 631ac6108f

View File

@ -509,6 +509,9 @@
toggleOptions (ev) { toggleOptions (ev) {
ev.preventDefault(); ev.preventDefault();
utils.slideInAllElements(
document.querySelectorAll('#conversejs .contact-form-container')
);
$(ev.target).parent().parent().siblings('dd').find('ul').toggle('fast'); $(ev.target).parent().parent().siblings('dd').find('ul').toggle('fast');
}, },