@ -469,14 +469,16 @@ window.chat.getActive = function() {
|
|||||||
window.chat.toggle = function() {
|
window.chat.toggle = function() {
|
||||||
var c = $('#chat, #chatcontrols');
|
var c = $('#chat, #chatcontrols');
|
||||||
if(c.hasClass('expand')) {
|
if(c.hasClass('expand')) {
|
||||||
$('#chatcontrols a:first').text('expand');
|
$('#chatcontrols a:first').text('◢◣');
|
||||||
c.removeClass('expand');
|
c.removeClass('expand');
|
||||||
var div = $('#chat > div:visible');
|
var div = $('#chat > div:visible');
|
||||||
div.data('ignoreNextScroll', true);
|
div.data('ignoreNextScroll', true);
|
||||||
div.scrollTop(99999999); // scroll to bottom
|
div.scrollTop(99999999); // scroll to bottom
|
||||||
|
$('.leaflet-control').css('margin-left', '0');
|
||||||
} else {
|
} else {
|
||||||
$('#chatcontrols a:first').text('shrink');
|
$('#chatcontrols a:first').text('◥◤');
|
||||||
c.addClass('expand');
|
c.addClass('expand');
|
||||||
|
$('.leaflet-control').css('margin-left', '720px');
|
||||||
chat.needMoreMessages();
|
chat.needMoreMessages();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,11 @@ a:hover {
|
|||||||
border: 1px solid #20A8B1;
|
border: 1px solid #20A8B1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#chatcontrols a:first-child {
|
||||||
|
letter-spacing:-1px;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
#chatcontrols a.active {
|
#chatcontrols a.active {
|
||||||
border-color: #FFCE00;
|
border-color: #FFCE00;
|
||||||
border-bottom-width:0px;
|
border-bottom-width:0px;
|
||||||
|
Reference in New Issue
Block a user