which file should contain this code?

On 25 Mrz., 16:25, Ted Gifford <[EMAIL PROTECTED]> wrote:
> benhoyt wrote:
> > Aha -- excellent idea! No config option, no fancy server-side code,
> > just a simple <a> tag with a 15-line JavaScript function called by the
> > onclick event. You could put the "toggle line numbers" link nicely in
> > the table cell to the right of the "Line" heading cell.
>
> It turns out to be two two-line functions (excuse the poor namespace
> control):
>
> var a,b;
> function removeLineNumbers()
> {
>  a = jQuery('#preview table.code th.lineno').remove();
>  b = jQuery('#preview table.code tbody th').remove();}
>
> function restoreLineNumbers()
> {
>  var rows = jQuery('#preview table.code tbody tr'); // cache
> value--doesn't count as line of code ; )
>  jQuery('#preview table.code thead tr').prepend(a[0]);
>  b.each(function(i){rows.eq(i).prepend(b[i]);});
>
>
>
> }- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to