2015-08-03 11:35:01 +02:00
|
|
|
<div id="{$jid}_discussion" class="contained">
|
|
|
|
<section id="{$jid}_messages">
|
|
|
|
<ul class="{if="$muc"}thin simple{else}middle{/if}" id="{$jid}_conversation"></ul>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="chat_box">
|
|
|
|
<ul class="thin">
|
|
|
|
<li class="action">
|
|
|
|
<span class="icon gray emojis_open" onclick="Chat_ajaxSmiley()">
|
2015-12-15 11:54:49 +01:00
|
|
|
<img alt=":smiley:" class="emoji large" src="{$c->getSmileyPath('1f603')}">
|
2015-08-03 11:35:01 +02:00
|
|
|
</span>
|
|
|
|
<div class="action" data-jid="{$jid}" onclick="Chat.sendMessage(this.dataset.jid, {if="$muc"}true{else}false{/if})">
|
|
|
|
<i class="zmdi zmdi-mail-send"></i>
|
|
|
|
</div>
|
|
|
|
<form>
|
|
|
|
<div>
|
2015-08-10 23:42:45 +02:00
|
|
|
<textarea
|
2015-08-03 11:35:01 +02:00
|
|
|
rows="1"
|
|
|
|
id="chat_textarea"
|
|
|
|
data-jid="{$jid}"
|
|
|
|
onkeypress="
|
|
|
|
if(event.keyCode == 13) {
|
|
|
|
state = 0;
|
|
|
|
Chat.sendMessage(this.dataset.jid, {if="$muc"}true{else}false{/if});
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
{if="!$muc"}
|
|
|
|
if(state == 0 || state == 2) {
|
|
|
|
state = 1;
|
|
|
|
{$composing}
|
|
|
|
since = new Date().getTime();
|
|
|
|
}
|
|
|
|
{/if}
|
|
|
|
}
|
|
|
|
"
|
|
|
|
onkeyup="
|
|
|
|
{if="!$muc"}
|
|
|
|
setTimeout(function()
|
|
|
|
{
|
|
|
|
if(state == 1 && since+5000 < new Date().getTime()) {
|
|
|
|
state = 2;
|
|
|
|
{$paused}
|
|
|
|
}
|
|
|
|
},5000);
|
|
|
|
{/if}
|
|
|
|
"
|
2015-11-13 13:37:39 +01:00
|
|
|
oninput="movim_textarea_autoheight(this);"
|
2015-08-03 11:35:01 +02:00
|
|
|
placeholder="{$c->__('chat.placeholder')}"
|
|
|
|
></textarea>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|