From b88b046222fe71350de06d0e534fa8b2558abb03 Mon Sep 17 00:00:00 2001 From: Lorenz H-S Date: Sat, 28 Dec 2013 16:58:32 +0100 Subject: [PATCH] Bind bufferlist only once where possible --- index.html | 4 ++-- js/models.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 80b30d4..906204e 100644 --- a/index.html +++ b/index.html @@ -266,9 +266,9 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
  • - + - {{ content.indent(predicate) }}{{ content.shortName }}{{ content.fullName }} + {{ content.indentedName(predicate) }}{{ content.fullName }}
  • diff --git a/js/models.js b/js/models.js index 70d3618..bfada31 100644 --- a/js/models.js +++ b/js/models.js @@ -28,12 +28,12 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter) var lastSeen = -1; var serverSortKey = fullName.replace(/^irc.server.(\w+)/, "irc.$1"); - var indent = function(predicate) { + var indentedName = function(predicate) { if( predicate == "serverSortKey" && fullName.match(/^irc./) && !fullName.match(/^irc.server./) ) { // indent channel - return "    "; // four protected spaces + return "    " + shortName; // four protected spaces } else { - return ""; + return shortName; } }; @@ -173,7 +173,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter) updateNick: updateNick, flatNicklist: flatNicklist, serverSortKey: serverSortKey, - indent: indent, + indentedName: indentedName, history: history, addToHistory: addToHistory, getHistoryUp: getHistoryUp,