Here is the error I got with my callback:<div>Undefined subroutine &HTML::Mason::Commands::jQuery called at /svr/rt4/local/html/Callbacks/SLAC/Elements/Header/Head line 2.<br><br><div class="gmail_quote">On 11 July 2012 11:02, Nafiesa Allie <span dir="ltr"><<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, I figured out how to get RT to incorporate the code that I put into the Callback for the Header, however, there is something wrong with my code. Please can you give me guidance? Remember, that in the end I want the dashboard panels to lie side by side, and not the panels on the RT at a glance screen. Thanks.<div class="HOEnZb">
<div class="h5"><div>
<br><div class="gmail_quote">On 11 July 2012 09:35, Nafiesa Allie <span dir="ltr"><<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks, Ruslan.<div><br><div>OK, I created my callback file but now I am not sure what the code should look like. </div><div><br></div><div>Using your dirty variant that applies to RT at a glance</div><div><div>
jQuery('table.myrt td.boxcontainer > div').detach().appendTo('table.myrt > tbody > tr').wrap('<td class="boxcontainer" />');</div>
</div><div>and changing it to</div><div>jQuery('table#dashboard-26.dashboard td.boxcontainer > div').detach().appendTo('table#dashboard-26.dashboard > tbody > tr').wrap('<td class="boxcontainer" />');</div>
<div>it now applies to the dashboard.</div><div><br></div><div>However, adding the code to my callback, does not make any difference, even after rebooting the RT server, regardless whether I am using your variant or my own. I am not sure whether the problem lies in my code - see printscreen attached, or elsewhere. I would deeply appreciate some further help in this and am desperate to resolve this sooner rather than later. If I am unable to master this, then some other ticketing system will be enforced.</div>
<div><br></div><div>(It feels like I am taking tiny baby-steps in resolving this problem; I wish there was a clear example that one could follow.)</div><div><br></div><div>Regards</div><span><font color="#888888"><div>
Nafiesa</div></font></span><div><div><div><div><br><div class="gmail_quote">
On 10 July 2012 20:57, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com" target="_blank">ruz@bestpractical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
RT's file share/html/Elements/Header contains the following line:<br>
<br>
$m->callback( %ARGS, CallbackName => 'Head' );<br>
<br>
It's the perfect place to insert custom CSS/JS hacks.<br>
<div><div><br>
On Tue, Jul 10, 2012 at 2:51 PM, Nafiesa Allie <<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>> wrote:<br>
> I think I must clarify what I am saying below:<br>
> from what I understand RT4 callbacks are defined in /rt4/share/Elements. I<br>
> found a number of callbacks there, but not the one I am looking for, viz.<br>
> Header, so I need help to either find it or create it from scratch.<br>
><br>
> Regards<br>
> Nafiesa<br>
><br>
> On 10 July 2012 13:36, Nafiesa Allie <<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>> wrote:<br>
>><br>
>> Hi Ruslan<br>
>><br>
>> I managed to figure out how to successfully create a dirty variant, and it<br>
>> seems to do what I want. However, I am still struggling to create the<br>
>> callback.<br>
>> " There is a callback in Header file to put any custom javascript on RT<br>
>> pages. " - I do not find such a callback.<br>
>> I now understand the concept of a callback, but not finding the relevant<br>
>> callback does not help much. Please could you give me some direction?<br>
>><br>
>> Regards<br>
>> Nafiesa<br>
>><br>
>><br>
>> On 6 July 2012 15:21, Nafiesa Allie <<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>> wrote:<br>
>>><br>
>>> Hi Ruslan<br>
>>><br>
>>> Thanks so much for your swift response plus the given detail; I am so<br>
>>> glad that it is possible! However, I have no idea how to get to the<br>
>>> interface that will enable me to add the new code. This is the first time I<br>
>>> am wanting to do a customization, and I do not know where to start. How do<br>
>>> I get to the interface in your screenshot?<br>
>>><br>
>>> Have a great weekend!<br>
>>> Nafiesa<br>
>>><br>
>>><br>
>>> On 5 July 2012 14:53, Ruslan Zakirov <<a href="mailto:ruz@bestpractical.com" target="_blank">ruz@bestpractical.com</a>> wrote:<br>
>>>><br>
>>>> On Tue, Jul 3, 2012 at 9:29 AM, Nafiesa Allie <<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>><br>
>>>> wrote:<br>
>>>> > I have already created dashboards with custom searches, but my problem<br>
>>>> > lies<br>
>>>> > with the fact that I cannot get the panels to lie alongside each other<br>
>>>> > as<br>
>>>> > per my example. RT only allows two lists/charts panels next to each<br>
>>>> > other.<br>
>>>> > How do I overcome this?<br>
>>>><br>
>>>> With javascript:<br>
>>>><br>
>>>> jQuery('table.myrt td.boxcontainer ><br>
>>>> div').detach().appendTo('table.myrt > tbody > tr').wrap('<td<br>
>>>> class="boxcontainer" />');<br>
>>>><br>
>>>> Above is dirty variant, but at least it works in Chrome and<br>
>>>> demonstrates how to start. There is a callback in Header file to put<br>
>>>> any custom javascript on RT pages.<br>
>>>><br>
>>>> ><br>
>>>> ><br>
>>>> > On 2 July 2012 21:47, Ruslan Zakirov <<a href="mailto:ruz@bestpractical.com" target="_blank">ruz@bestpractical.com</a>> wrote:<br>
>>>> >><br>
>>>> >> On Mon, Jul 2, 2012 at 12:42 PM, Nafiesa Allie<br>
>>>> >> <<a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a>><br>
>>>> >> wrote:<br>
>>>> >> > Great! So where do I start? I have never fiddled with CSS or JS<br>
>>>> >> > before,<br>
>>>> >> > so<br>
>>>> >> > it will be helpful if you could direct me to a relevant example.<br>
>>>> >><br>
>>>> >> Start from Dashboards, custom searches and see how close you can get<br>
>>>> >> to what you need.<br>
>>>> >><br>
>>>> >><br>
>>>> >><br>
>>>> >> ><br>
>>>> >> > On 29 June 2012 20:09, Thomas Sibley <<a href="mailto:trs@bestpractical.com" target="_blank">trs@bestpractical.com</a>> wrote:<br>
>>>> >> >><br>
>>>> >> >> On 06/29/2012 10:57 AM, Benjamin Boksa wrote:<br>
>>>> >> >> > I am sure this can be done using RT4 by writing a custom page -<br>
>>>> >> >> > but I<br>
>>>> >> >> > honestly do not know how…<br>
>>>> >> >><br>
>>>> >> >> Learning the basics of how to create your own page in RT will<br>
>>>> >> >> probably<br>
>>>> >> >> be faster and more efficient than trying to use the REST interface<br>
>>>> >> >> to<br>
>>>> >> >> get all the data and interaction you want.<br>
>>>> >> >><br>
>>>> >> >> You can probably do most of what you want with a standard<br>
>>>> >> >> dashboard and<br>
>>>> >> >> a bunch of custom CSS and JS that targets it to rearrange as<br>
>>>> >> >> necessary.<br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> > --<br>
>>>> >> ><br>
>>>> >> > Groete/Regards<br>
>>>> >> ><br>
>>>> >> > Nafiesa Allie<br>
>>>> >> ><br>
>>>> >> > Kromco (Pty) Ltd<br>
>>>> >> ><br>
>>>> >> > | t <a href="tel:%2B27%5B0%5D21%20850-6847" value="+27218506847" target="_blank">+27[0]21 850-6847</a> | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e<br>
>>>> >> > <a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a> |<br>
>>>> >> ><br>
>>>> >> > *Important Notice: This e-mail may contain trade secrets or<br>
>>>> >> > privileged,<br>
>>>> >> > undisclosed, or otherwise confidential information.<br>
>>>> >> ><br>
>>>> >> > If you have received this e-mail in error, you are hereby notified<br>
>>>> >> > that<br>
>>>> >> > any<br>
>>>> >> > review, copying, or distribution of it is strictly prohibited.<br>
>>>> >> ><br>
>>>> >> > Please inform us immediately and destroy the original transmittal.<br>
>>>> >> > Thank<br>
>>>> >> > you<br>
>>>> >> > for your cooperation.<br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >><br>
>>>> >><br>
>>>> >><br>
>>>> >> --<br>
>>>> >> Best regards, Ruslan.<br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > --<br>
>>>> ><br>
>>>> > Groete/Regards<br>
>>>> ><br>
>>>> > Nafiesa Allie<br>
>>>> ><br>
>>>> > Kromco (Pty) Ltd<br>
>>>> ><br>
>>>> > | t <a href="tel:%2B27%5B0%5D21%20850-6847" value="+27218506847" target="_blank">+27[0]21 850-6847</a> | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e <a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a><br>
>>>> > |<br>
>>>> ><br>
>>>> > *Important Notice: This e-mail may contain trade secrets or<br>
>>>> > privileged,<br>
>>>> > undisclosed, or otherwise confidential information.<br>
>>>> ><br>
>>>> > If you have received this e-mail in error, you are hereby notified<br>
>>>> > that any<br>
>>>> > review, copying, or distribution of it is strictly prohibited.<br>
>>>> ><br>
>>>> > Please inform us immediately and destroy the original transmittal.<br>
>>>> > Thank you<br>
>>>> > for your cooperation.<br>
>>>> ><br>
>>>> ><br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Best regards, Ruslan.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>><br>
>>> Groete/Regards<br>
>>><br>
>>> Nafiesa Allie<br>
>>><br>
>>> Kromco (Pty) Ltd<br>
>>><br>
>>> | t <a href="tel:%2B27%5B0%5D21%20850-6847" value="+27218506847" target="_blank">+27[0]21 850-6847</a> | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e <a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a> |<br>
>>><br>
>>> *Important Notice: This e-mail may contain trade secrets or privileged,<br>
>>> undisclosed, or otherwise confidential information.<br>
>>><br>
>>> If you have received this e-mail in error, you are hereby notified that<br>
>>> any review, copying, or distribution of it is strictly prohibited.<br>
>>><br>
>>> Please inform us immediately and destroy the original transmittal. Thank<br>
>>> you for your cooperation.<br>
>>><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>><br>
>> Groete/Regards<br>
>><br>
>> Nafiesa Allie<br>
>><br>
>> Kromco (Pty) Ltd<br>
>><br>
>> | t <a href="tel:%2B27%5B0%5D21%20850-6847" value="+27218506847" target="_blank">+27[0]21 850-6847</a> | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e <a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a> |<br>
>><br>
>> *Important Notice: This e-mail may contain trade secrets or privileged,<br>
>> undisclosed, or otherwise confidential information.<br>
>><br>
>> If you have received this e-mail in error, you are hereby notified that<br>
>> any review, copying, or distribution of it is strictly prohibited.<br>
>><br>
>> Please inform us immediately and destroy the original transmittal. Thank<br>
>> you for your cooperation.<br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
><br>
> Groete/Regards<br>
><br>
> Nafiesa Allie<br>
><br>
> Kromco (Pty) Ltd<br>
><br>
> | t <a href="tel:%2B27%5B0%5D21%20850-6847" value="+27218506847" target="_blank">+27[0]21 850-6847</a> | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e <a href="mailto:nafiesaa@kromco.co.za" target="_blank">nafiesaa@kromco.co.za</a> |<br>
><br>
> *Important Notice: This e-mail may contain trade secrets or privileged,<br>
> undisclosed, or otherwise confidential information.<br>
><br>
> If you have received this e-mail in error, you are hereby notified that any<br>
> review, copying, or distribution of it is strictly prohibited.<br>
><br>
> Please inform us immediately and destroy the original transmittal. Thank you<br>
> for your cooperation.<br>
><br>
><br>
<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Best regards, Ruslan.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><p><a name="138754635b473287_13874f71210d7a13_SafeHtmlFilter_SafeHtmlFilter__MailAutoSig"><span style="color:#632423">Groete/Regards</span></a></p>
<p><span style="color:rgb(99,36,35);font-family:'Viner Hand ITC'">Nafiesa Allie</span></p>
<p><span><span style="color:#632423">Kromco (Pty) Ltd</span></span><span><span style="color:#632423"></span></span></p>
<p><span><span style="color:#632423">| t +27[0]21
850-6847 | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e </span></span><a href="mailto:nafiesaa@kromco.co.za" target="_blank"><span><span style="color:blue">nafiesaa@kromco.co.za</span></span><span></span></a><span><span style="color:#632423"> |</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">*Important Notice: This e-mail may
contain trade secrets or privileged, undisclosed, or otherwise confidential
information.</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">If you have received this e-mail
in error, you are hereby notified that any review, copying, or distribution of
it is strictly prohibited.</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">Please inform us immediately and
destroy the original transmittal. Thank you for your cooperation.</span></span></p><br>
</div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><p><a name="138754635b473287_SafeHtmlFilter_SafeHtmlFilter__MailAutoSig"><span style="color:#632423">Groete/Regards</span></a></p>
<p><span style="color:rgb(99,36,35);font-family:'Viner Hand ITC'">Nafiesa Allie</span></p>
<p><span><span style="color:#632423">Kromco (Pty) Ltd</span></span><span><span style="color:#632423"></span></span></p>
<p><span><span style="color:#632423">| t +27[0]21
850-6847 | f <a href="tel:%2B27%5B0%5D21%20850-6871" value="+27218506871" target="_blank">+27[0]21 850-6871</a> | e </span></span><a href="mailto:nafiesaa@kromco.co.za" target="_blank"><span><span style="color:blue">nafiesaa@kromco.co.za</span></span><span></span></a><span><span style="color:#632423"> |</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">*Important Notice: This e-mail may
contain trade secrets or privileged, undisclosed, or otherwise confidential
information.</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">If you have received this e-mail
in error, you are hereby notified that any review, copying, or distribution of
it is strictly prohibited.</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">Please inform us immediately and
destroy the original transmittal. Thank you for your cooperation.</span></span></p><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><p><a name="SafeHtmlFilter_SafeHtmlFilter__MailAutoSig"><span style="color:#632423">Groete/Regards</span></a></p>
<p><span style="color:rgb(99,36,35);font-family:'Viner Hand ITC'">Nafiesa Allie</span></p>
<p><span><span style="color:#632423">Kromco (Pty) Ltd</span></span><span><span style="color:#632423"></span></span></p>
<p><span><span style="color:#632423">| t +27[0]21
850-6847 | f +27[0]21 850-6871 | e </span></span><a href="mailto:nafiesaa@kromco.co.za" target="_blank"><span><span style="color:blue">nafiesaa@kromco.co.za</span></span><span></span></a><span><span style="color:#632423"> |</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">*Important Notice: This e-mail may
contain trade secrets or privileged, undisclosed, or otherwise confidential
information.</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">If you have received this e-mail
in error, you are hereby notified that any review, copying, or distribution of
it is strictly prohibited.</span></span></p>
<p><span><span style="font-size:7.5pt;color:#632423">Please inform us immediately and
destroy the original transmittal. Thank you for your cooperation.</span></span></p><br>
</div>