|
|
@@ -28,7 +28,9 @@ function createTypingDisplay() {
|
|
|
**/
|
|
|
function createChanListItem(chan, alternateChanName) {
|
|
|
var dom = document.createElement("li")
|
|
|
- ,link = document.createElement("a");
|
|
|
+ ,link = document.createElement("a")
|
|
|
+ ,linkText = document.createElement("span")
|
|
|
+ ,info = document.createElement("a");
|
|
|
|
|
|
dom.id = "room_" +chan.id;
|
|
|
link.href = '#' +chan.id;
|
|
|
@@ -40,7 +42,12 @@ function createChanListItem(chan, alternateChanName) {
|
|
|
}
|
|
|
if (SELECTED_ROOM === chan)
|
|
|
dom.classList.add(R.klass.selected);
|
|
|
- link.textContent = alternateChanName || chan.name;
|
|
|
+ linkText.className = R.klass.chatList.roomInfo.name;
|
|
|
+ linkText.textContent = alternateChanName || chan.name;
|
|
|
+ info.textContent = "i";
|
|
|
+ info.className = R.klass.chatList.roomInfo.info;
|
|
|
+ link.appendChild(linkText);
|
|
|
+ link.appendChild(info);
|
|
|
dom.appendChild(createTypingDisplay());
|
|
|
dom.appendChild(link);
|
|
|
if (chan.lastMsg !== chan.lastRead && chan.lastMsg !== undefined) {
|
|
|
@@ -72,12 +79,19 @@ var createChanListHeader = (function() {
|
|
|
**/
|
|
|
function createImsListItem(ims, alternateChanName) {
|
|
|
var dom = document.createElement("li")
|
|
|
- ,link = document.createElement("a");
|
|
|
+ ,link = document.createElement("a")
|
|
|
+ ,linkText = document.createElement("span")
|
|
|
+ ,info = document.createElement("a");
|
|
|
|
|
|
dom.id = "room_" +ims.id;
|
|
|
link.href = '#' +ims.id;
|
|
|
dom.className = R.klass.chatList.entry + " " +R.klass.chatList.typeDirect +" " +R.klass.presenceIndicator;
|
|
|
- link.textContent = alternateChanName || ims.user.getName();
|
|
|
+ linkText.textContent = alternateChanName || ims.user.getName();
|
|
|
+ linkText.className = R.klass.chatList.roomInfo.name;
|
|
|
+ info.textContent = "i";
|
|
|
+ info.className = R.klass.chatList.roomInfo.info;
|
|
|
+ link.appendChild(linkText);
|
|
|
+ link.appendChild(info);
|
|
|
dom.appendChild(createTypingDisplay());
|
|
|
dom.appendChild(link);
|
|
|
|