#11632 closed enhancement (fixed)
Simplify code by using add_script_data
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | QueuesPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Justin Ludwig | Trac Release: |
Description
We can simplify the code quite a bit by removing the Genshi markup from the JavaScript template, moving the file from templates to htdocs and using add_script_data to pass the variables.
Also, I think the plugin doesn't currently work with Trac 1.0. It seemed to be working fine in 0.12, but when I switched branches the re-ordering would no longer be saved. I didn't see any errors in the console, but didn't dig any deeper into the issue.
Attachments (0)
Change History (5)
comment:1 Changed 9 years ago by
| Cc: | Justin Ludwig added |
|---|
comment:2 Changed 9 years ago by
| Owner: | changed from Rob Guttman to Ryan J Ollos |
|---|---|
| Status: | new → accepted |
comment:3 Changed 9 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
comment:4 follow-up: 5 Changed 9 years ago by
@justinludwig: I implemented this pretty quickly. It seems to be working well, but please report back if you are able to do more testing. You'll need to install from queuesplugin/1.2.
comment:5 Changed 9 years ago by
I tried out the latest from the queuesplugin/1.2 branch -- works great, thanks!



In 15979: