-
-
Save BinaryPaean/bb8d58d0c722bf5c6eac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="EmployeePhoneField"> | |
<!--#_ | |
var encodedWphone = $htmlEncode(ctx.CurrentItem.Workphone); | |
var displayWphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "workphone"); | |
console.log(displayWphone); | |
if ($isEmptyString(displayWphone)) { displayWphone = encodedWphone } | |
var firstDigitsDisplayWPhone = displayWphone.slice(0,-3); | |
var lastThreeDigitsWPhone = displayWphone.slice(-3); | |
_#--> | |
<div id="EmployeePhoneValue" class="ms-srch-ellipsis" title="_#= encodedWphone =#_">P: _#= firstDigitsDisplayWPhone =#_<strong>_#l=astThreeDigitsWPhone=#_</strong></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment