Skip to content

Commit

Permalink
Renamed function PhoneCallStatus to more accurate CallerStatus.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinekitty committed Jun 8, 2016
1 parent b91fe84 commit 26439b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/jcclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

searchButton.innerHTML = '<a href="http://www.google.com/search?q=' + encodeURIComponent(call.number) + '" target="_blank">Search Google</a>';

var status = PhoneCallStatus(call);
var status = CallerStatus(call);
SetTargetStatus(status);

switch (status) {
Expand All @@ -160,7 +160,7 @@
var callerCell = document.createElement('td');
if (call.number !== '') {
callerCell.textContent = SanitizeSpaces(call.name) || SanitizeSpaces(call.callid) || SanitizeSpaces(call.number);
callerCell.className = BlockStatusClassName(PhoneCallStatus(call));
callerCell.className = BlockStatusClassName(CallerStatus(call));
callerCell.onclick = function() {
SetTargetCall(call);
}
Expand Down Expand Up @@ -189,7 +189,7 @@
return false;
}

function PhoneCallStatus(call) {
function CallerStatus(call) {
// Emulate jcblock's rules for whitelisting and blacklisting.
// First look in the whitelist for any pattern match with name or number.
// If found, it is whitelisted.
Expand Down

0 comments on commit 26439b5

Please sign in to comment.