<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-compose;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p><span style="font-size:10.0pt">Hi Kevin<br>
<br>
> Hi Jim<br>
<br>
On Mon, Feb 04, 2013 at 10:35:55PM +0000, Jim Berry wrote:<br>
>> 2. When doing a Content Search, we highlight the matching text when the ticket is displayed.<br>
>> This required adding a few lines in Ticket/Elements/ShowMessageStanza to wrap a <span> around<br>
>> the match and creating a CSS entry with a yellow background. No doubt I am doing this in a<br>
>> very inefficient and inelegant way, but this does not seem to slow down the ticket<br>
>> display.<br>
<br>
> My initial reaction was "performance" as you note, but it'd still be interesting to see what you did to see if it can end up in core.<br>
<br>
I've attached a diff for ShowMessageStanza. One of the performance issues is that the regexp is re-created for each attachment in a ticket. No doubt there is a better way to do this.<br>
<br>
The CSS definition is tucked away in local/html/Callbacks/xxx/NoAuth/css/base/main.css/End<br>
<br>
span.localhighlight {<br>
color: #000000;<br>
background-color: #FFFF00;<br>
}<br>
<br>
-- Jim</span><o:p></o:p></p>
</div>
</body>
</html>