Opened 14 years ago
Closed 14 years ago
#8553 closed defect (fixed)
Query page javascript errors
Reported by: | Bryan Kitts | Owned by: | Rob Guttman |
---|---|---|---|
Priority: | low | Component: | DynamicFieldsPlugin |
Severity: | minor | Keywords: | |
Cc: | trachacks@…, Jan Beilicke | Trac Release: | 0.11 |
Description
DynamicFieldsPlugin seems to throw an error on Trac query page for my configuration (Trac 0.11.5, tracd, multiple Trac databases on same server, Firefox 3.6 and IE7).
The only obvious effect of this is that the Filters and Columns sections of the Trac Query page are no longer collapsible. Not sure if it causes any other problems.
The cause seems to be in dynfields.html. When I navigate to the Query page http://dblonws29921.uk.db.com/MVProjects/query
window.location.pathname is actually set to '/MVProjects/query' so the code chooses the wrong branch.
Adding the substr() below fixes it for me. Not sure if there's a neater solution.
jQuery(document).ready(function($){ var triggers = get_triggers(); // trigger fields if (window.location.pathname.substr(window.location.pathname.length-6,6) == '/query'){
[Hope that makes sense --Bryan]
Attachments (0)
Change History (6)
comment:1 Changed 14 years ago by
Cc: | trachacks@… added; anonymous removed |
---|
comment:2 Changed 14 years ago by
Cc: | Jan Beilicke added |
---|
comment:4 follow-up: 5 Changed 14 years ago by
Thanks for reporting this and the suggested fixes. I just fixed this and another JS error in the plugin on the 0.11 branch only. Please let me know if it now works for you or not. Thanks.
comment:5 Changed 14 years ago by
Replying to robguttman:
Thanks for reporting this and the suggested fixes. I just fixed this and another JS error in the plugin on the 0.11 branch only. Please let me know if it now works for you or not. Thanks.
Works fine (for me), thanks for the quick patch!
BTW: The other fixed error regarding the id was causing my problem. It worked with the patch I mentioned above, so I didn't get into detail regarding the underlying issue when adding my comment. Sorry for that.
I had a similar issue with Trac 0.12 and plugin branch 0.11. I fixed it with: