Explorar el Código

Bugfix. class wasn't being toggled

JC Brand hace 8 años
padre
commit
7ededd2379
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/converse-rosterview.js

+ 1 - 1
src/converse-rosterview.js

@@ -177,7 +177,7 @@
                 toggleX: function (ev) {
                     if (ev && ev.preventDefault) { ev.preventDefault(); }
                     var el = ev.target;
-                    $(el)[this.tog(el.offsetWidth-18 < ev.clientX-el.getBoundingClientRect().left)]('onX');
+                    el.classList[this.tog(el.offsetWidth-18 < ev.clientX-el.getBoundingClientRect().left)]('onX');
                 },
 
                 changeChatStateFilter: function (ev) {