mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Cleanup of CSS & JS
This commit is contained in:
parent
3c71f81547
commit
c38c04dc39
@ -14,7 +14,7 @@ TimWolla.WCF ?= {}
|
|||||||
TimWolla.WCF.Chat =
|
TimWolla.WCF.Chat =
|
||||||
titleTemplate: null
|
titleTemplate: null
|
||||||
messageTemplate: null
|
messageTemplate: null
|
||||||
init: (roomID, messageID) ->
|
init: () ->
|
||||||
@bindEvents()
|
@bindEvents()
|
||||||
@refreshRoomList()
|
@refreshRoomList()
|
||||||
new WCF.PeriodicalExecuter $.proxy(@refreshRoomList, this), 10e3
|
new WCF.PeriodicalExecuter $.proxy(@refreshRoomList, this), 10e3
|
||||||
|
@ -22,14 +22,17 @@
|
|||||||
margin-bottom: -20px !important;
|
margin-bottom: -20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left aside {
|
aside {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0 1px 0 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right aside {
|
.left aside {
|
||||||
overflow: auto;
|
padding-right: 1px;
|
||||||
padding: 0 0 1px 0;
|
}
|
||||||
|
|
||||||
|
.left aside {
|
||||||
|
padding-left: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside h2 {
|
aside h2 {
|
||||||
@ -107,6 +110,7 @@
|
|||||||
.chatMessage time, .chatMessage time::before, .chatMessage time::after {
|
.chatMessage time, .chatMessage time::before, .chatMessage time::after {
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatMessage time::before {
|
.chatMessage time::before {
|
||||||
content: "[";
|
content: "[";
|
||||||
}
|
}
|
||||||
@ -229,10 +233,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.counterContainer {
|
.counterContainer {
|
||||||
display: table;
|
display: table;
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{/section}
|
{/section}
|
||||||
</ul>
|
</ul>
|
||||||
<nav id="chatRoomList" class="sidebarMenu hidden">
|
<nav id="chatRoomList" class="sidebarMenu" style="display: none;">
|
||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
{foreach from=$rooms item='roomListRoom'}
|
{foreach from=$rooms item='roomListRoom'}
|
||||||
@ -378,18 +378,17 @@
|
|||||||
TimWolla.WCF.Chat.titleTemplate = new WCF.Template('{ldelim}$title} - {'wcf.chat.title'|language|encodeJS} - {PAGE_TITLE|language|encodeJS}');
|
TimWolla.WCF.Chat.titleTemplate = new WCF.Template('{ldelim}$title} - {'wcf.chat.title'|language|encodeJS} - {PAGE_TITLE|language|encodeJS}');
|
||||||
{capture assign='chatMessageTemplate'}{include file='chatMessage'}{/capture}
|
{capture assign='chatMessageTemplate'}{include file='chatMessage'}{/capture}
|
||||||
TimWolla.WCF.Chat.messageTemplate = new WCF.Template('{@$chatMessageTemplate|encodeJS}');
|
TimWolla.WCF.Chat.messageTemplate = new WCF.Template('{@$chatMessageTemplate|encodeJS}');
|
||||||
TimWolla.WCF.Chat.init({$room->roomID}, 1);
|
|
||||||
TimWolla.WCF.Chat.handleMessages([
|
|
||||||
{implode from=$newestMessages item='message'}
|
|
||||||
{@$message->jsonify()}
|
|
||||||
{/implode}
|
|
||||||
]);
|
|
||||||
|
|
||||||
TimWolla.WCF.Chat.config = {
|
TimWolla.WCF.Chat.config = {
|
||||||
reloadTime: {CHAT_RELOADTIME},
|
reloadTime: {CHAT_RELOADTIME},
|
||||||
animations: {CHAT_ANIMATIONS},
|
animations: {CHAT_ANIMATIONS},
|
||||||
maxTextLength: {CHAT_LENGTH}
|
maxTextLength: {CHAT_LENGTH}
|
||||||
}
|
}
|
||||||
|
TimWolla.WCF.Chat.init();
|
||||||
|
TimWolla.WCF.Chat.handleMessages([
|
||||||
|
{implode from=$newestMessages item='message'}
|
||||||
|
{@$message->jsonify()}
|
||||||
|
{/implode}
|
||||||
|
]);
|
||||||
|
|
||||||
$('#chatInput').jCounter();
|
$('#chatInput').jCounter();
|
||||||
//]]>
|
//]]>
|
||||||
|
Loading…
Reference in New Issue
Block a user