Redesigned IITC Mobile to use ActionBar menu instead of web based tabs.

This commit is contained in:
Jon Benson
2013-05-06 22:31:50 +10:00
parent 13bd906a9e
commit 7e2087da63
45 changed files with 150 additions and 44 deletions

View File

@ -473,9 +473,7 @@ window.chat.needMoreMessages = function() {
chat.requestPublic(true);
}
window.chat.chooser = function(event) {
var t = $(event.target);
window.chat.chooseAnchor = function(t) {
var tt = t.text();
var mark = $('#chatinput mark');
@ -524,6 +522,18 @@ window.chat.chooser = function(event) {
chat.needMoreMessages();
}
window.chat.choose = function(name) {
$('#chat, #chatinput, #updatestatus').show();
$('#map').css('visibility', 'hidden');
var t = $('<a>'+name+'</a>');
window.chat.chooseAnchor(t);
}
window.chat.chooser = function(event) {
var t = $(event.target);
window.chat.chooseAnchor(t);
}
// contains the logic to keep the correct scroll position.
window.chat.keepScrollPosition = function(box, scrollBefore, isOldMsgs) {