Rename highlightNick to addMention

...because that's what it does
This commit is contained in:
Lorenz Hübschle-Schneider 2014-05-09 09:13:13 +01:00
parent 101699cce2
commit 703953a0f6
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
<span class="cof-chat_time cob-chat_time coa-chat_time" bo-text="bufferline.date|date:'HH'"></span><span class="cof-chat_time_delimiters cob-chat_time_delimiters coa-chat_time_delimiters">:</span><span class="cof-chat_time cob-chat_time coa-chat_time" bo-text="bufferline.date|date:'mm'"></span> <span class="cof-chat_time cob-chat_time coa-chat_time" bo-text="bufferline.date|date:'HH'"></span><span class="cof-chat_time_delimiters cob-chat_time_delimiters coa-chat_time_delimiters">:</span><span class="cof-chat_time cob-chat_time coa-chat_time" bo-text="bufferline.date|date:'mm'"></span>
</span> </span>
</td> </td>
<td class="prefix"><a ng-click="highlightNick(bufferline.prefix)"><span ng-repeat="part in bufferline.prefix" bo-class="part.classes" bo-html="part.text"></span></a></td> <td class="prefix"><a ng-click="addMention(bufferline.prefix)"><span ng-repeat="part in bufferline.prefix" bo-class="part.classes" bo-html="part.text"></span></a></td>
<td class="message"> <td class="message">
<div ng-repeat="metadata in bufferline.metadata"> <div ng-repeat="metadata in bufferline.metadata">
<div plugin data="metadata"></div> <div plugin data="metadata"></div>

View File

@ -1262,7 +1262,7 @@ weechat.directive('inputBar', function() {
} }
}; };
$rootScope.highlightNick = function(prefix) { $rootScope.addMention = function(prefix) {
// Extract nick from bufferline prefix // Extract nick from bufferline prefix
var nick = prefix[prefix.length - 1].text; var nick = prefix[prefix.length - 1].text;