Hi, I'm debugging an issue with a plugin calling a function in
http://www.edgewall.org/docs/trac-trunk/html/api/trac_web_chrome.html, in
particular trac.web.chrome.add_script_data, and I'm wondering if anyone
has pointers on ways to ensure the function is actually doing something
when it's called?

Naturally, you might wonder what plugin, it's Nokia-developer's
trac-kanban-board plugin. Here's the line that calls add_script_data:

https://github.com/nokia-developer/trac-kanban-board/blob/master/trackanban
board/kanbanboardmacro.py#L630

In my tests, I'm seeing a Javascript error on Google Chrome Devtools
console (I opened an issue for this on the trac-kanban-board GitHub
repository):

https://github.com/nokia-developer/trac-kanban-board/issues/1


Chrome Devtools shows this error on loading a page with the Kanbanboard
macro included: Uncaught ReferenceError: KANBAN_BOARD_ID is not defined.


By changing the order of global variables being echoed to the Javascript
console (in trackanbanboard/htdocs/js/kanbanboard.js, line 628, move up
TRAC_PROJECT_NAME in front of KANBAN_BOARD_ID) I get the same uncaught
reference error, but with TRAC_PROJECT_NAME. So, clearly something is
causing the add_script_data function to not work.


Any advice?


--
HARDY POTTINGER <[email protected]>
University of Missouri Library Systems
http://lso.umsystem.edu/~pottingerhj/
https://MOspace.umsystem.edu/
"Do not bubble. Do not spin your wheels. Use words I know." --Kurt
Vonnegut, final instructions to writing students



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to