소스 검색

Bugfix. Menu slid up again after ending OTR session.

JC Brand 11 년 전
부모
커밋
c15bcf0a23
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      converse.js

+ 5 - 1
converse.js

@@ -529,7 +529,7 @@
                 // query message from our buddy. Otherwise, it is us who will
                 // send the query message to them.
                 this.save({'otr_status': UNENCRYPTED});
-                session = this.getSession();
+                var session = this.getSession();
                 this.otr = new otr.OTR({
                     fragment_size: 140,
                     send_interval: 200,
@@ -1045,6 +1045,10 @@
             },
 
             endOTR: function (ev) {
+                if (typeof ev !== "undefined") {
+                    ev.preventDefault();
+                    ev.stopPropagation();
+                }
                 this.model.endOTR();
             },