Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#2778 closed defect (worksforme)

site_javascript.cs

Reported by: Pedro Algarvio <ufs@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Following the same path of site_css.cs, site_header.cs and site_footer.cs, add site_javascript.cs so we can include our own javascript into trac.

Or is there currently a way I can include my javascript inside the <Head></Head> tags, besides messing trac's code?

Attachments (0)

Change History (4)

comment:1 by Pedro Algarvio <ufs@…>, 18 years ago

Probably something like this:

  • /usr/share/trac/templates/

    old new  
    2121 /each ?><style type="text/css"><?cs include:"site_css.cs" ?></style>
    2222 <script type="text/javascript" src="<?cs
    2323   var:htdocs_location ?>js/trac.js"></script>
     24 <?cs include "site_javascript.cs" ?>
    2425</head>
    2526<body>
    2627<?cs include "site_header.cs" ?>

comment:2 by matthew.donald@…, 18 years ago

This is a very useful idea. Any chance of getting it into 0.9.5?

comment:3 by Pedro Algarvio <ufs@…>, 18 years ago

heh, I feel no more need for this, sorry, I found out I can include <script></script> tags anywhere…

comment:4 by Matthew Good, 18 years ago

Resolution: worksforme
Status: newclosed

Yes, the <script> tags can be included in site_header.cs, so there's no need for another template.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.