Do channel indendation in CSS.

Fixes the issue with new query buffers' titles not being shown.

Doesn't introduce any new watchers
This commit is contained in:
Lorenz H-S 2014-02-02 11:26:43 +00:00
commit f0fe8be18a
3 changed files with 10 additions and 13 deletions

View file

@ -27,15 +27,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
var unread = 0;
var lastSeen = -1;
var serverSortKey = fullName.replace(/^irc.server.(\w+)/, "irc.$1");
var indentedName = function(predicate) {
if( predicate == "serverSortKey" && fullName.match(/^irc./) && !fullName.match(/^irc.server./) ) {
// indent channel
return "    " + shortName; // four protected spaces
} else {
return shortName;
}
};
var indent = (fullName.match(/^irc./) && !fullName.match(/^irc.server./));
// Buffer opened message does not include notify level
if( message.notify !== undefined ) {
@ -173,7 +165,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
updateNick: updateNick,
flatNicklist: flatNicklist,
serverSortKey: serverSortKey,
indentedName: indentedName,
indent: indent,
history: history,
addToHistory: addToHistory,
getHistoryUp: getHistoryUp,