Commit 41426529 authored by JC Brand's avatar JC Brand

Drop dragresize-tm class. Don't set height if not available

parent a9c2b7d9
......@@ -1197,7 +1197,7 @@
'click .end-otr': 'endOTR',
'click .auth-otr': 'authOTR',
'click .toggle-call': 'toggleCall',
'mousedown .dragresize-tm': 'onDragResizeStart'
'mousedown .dragresize': 'onDragResizeStart'
},
initialize: function () {
......@@ -2017,8 +2017,7 @@
callback.apply(this, arguments);
}
if (converse.connection.connected) {
// Without a connection, we haven't yet initialized
// localstorage
// Without a connection, we haven't yet initialized localstorage
this.model.save();
this.initDragResize();
}
......@@ -2375,7 +2374,7 @@
events: {
'click a.close-chatbox-button': 'close',
'click ul#controlbox-tabs li a': 'switchTab',
'mousedown .dragresize-tm': 'onDragResizeStart'
'mousedown .dragresize': 'onDragResizeStart'
},
initialize: function () {
......@@ -2734,7 +2733,7 @@
'click .toggle-call': 'toggleCall',
'click .toggle-participants a': 'toggleOccupants',
'keypress textarea.chat-textarea': 'keyPressed',
'mousedown .dragresize-tm': 'onDragResizeStart'
'mousedown .dragresize': 'onDragResizeStart'
},
is_chatroom: true,
......
<div class="box-flyout" style="height: {{height}}px">
<div class="dragresize dragresize-tm"></div>
<div class="box-flyout" {[ if (height) { ]} style="height: {{height}}px" {[ } ]}>
<div class="dragresize"></div>
<div class="chat-head chat-head-chatbox">
<a class="close-chatbox-button icon-close"></a>
<a class="toggle-chatbox-button icon-minus"></a>
......
<div class="box-flyout" style="height: {{height}}px"
{[ if (minimized) { ]} style="display:none" {[ } ]}>
<div class="dragresize dragresize-tm"></div>
<div class="box-flyout" {[ if (height) { ]} style="height: {{height}}px" {[ } ]}>
<div class="dragresize"></div>
<div class="chat-head chat-head-chatroom">
<a class="close-chatbox-button icon-close"></a>
<a class="toggle-chatbox-button icon-minus"></a>
......
<div class="box-flyout" style="height: {{height}}px">
<div class="dragresize dragresize-tm"></div>
<div class="box-flyout" {[ if (height) { ]} style="height: {{height}}px" {[ } ]}>
<div class="dragresize"></div>
<div class="chat-head controlbox-head">
<ul id="controlbox-tabs"></ul>
<a class="close-chatbox-button icon-close"></a>
......
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