From 0a32aab309cb8f5112d75144f8393d52232b2caf Mon Sep 17 00:00:00 2001 From: Lorenz H-S Date: Thu, 26 Dec 2013 17:02:54 +0100 Subject: [PATCH 1/3] Bind nicklist only once this only refers to each entry of the nicklist, which will never change, as ng-repeat takes care of that. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1175a69..bc4ace6 100644 --- a/index.html +++ b/index.html @@ -276,8 +276,8 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
From 5ac2d6dce13bfdc8e56e73ba20a538a6ee28c93b Mon Sep 17 00:00:00 2001 From: Lorenz H-S Date: Thu, 26 Dec 2013 18:33:03 +0100 Subject: [PATCH 2/3] Reduce number of watchers by one per line by removing broken watcher --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index bc4ace6..80b30d4 100644 --- a/index.html +++ b/index.html @@ -286,7 +286,7 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel - :{{ bufferline.date | date:'mm' }} + : From b88b046222fe71350de06d0e534fa8b2558abb03 Mon Sep 17 00:00:00 2001 From: Lorenz H-S Date: Sat, 28 Dec 2013 16:58:32 +0100 Subject: [PATCH 3/3] 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,