|
Last change
on this file was
10114,
checked in by Russ Tyndall, 12 years ago
|
- Got query.js being included at the correct url
- use jquery for much smaller more readable query.js
- make it only attach to estimatedhours and hours
(though there is an easy place to change this)
Thanks very much for the bug report and patch. I ended up
rewriting that javascript file to use jquery and be much
shorter more re and moree
version 1.1.3 & 1.1.3b
fix #8732
|
|
File size:
477 bytes
|
| Line | |
|---|
| 1 | from trac.core import * |
|---|
| 2 | from trac.web.api import IRequestFilter |
|---|
| 3 | from trac.web.chrome import add_script |
|---|
| 4 | |
|---|
| 5 | class QueryWebUiAddon(Component): |
|---|
| 6 | implements(IRequestFilter) |
|---|
| 7 | |
|---|
| 8 | def pre_process_request(self, req, handler): |
|---|
| 9 | return handler |
|---|
| 10 | |
|---|
| 11 | def post_process_request(self, req, template, data, content_type): |
|---|
| 12 | if template == 'query.html': |
|---|
| 13 | add_script(req, "billing/query.js") |
|---|
| 14 | |
|---|
| 15 | return (template, data, content_type) |
|---|
Note: See
TracBrowser
for help on using the repository browser.