django-debug-toolbar-requests icon indicating copy to clipboard operation
django-debug-toolbar-requests copied to clipboard

"Content" and "Stack trace" links do not work

Open yigor opened this issue 7 years ago • 5 comments

Hello,

I've tried your plugin, everything seems to be working, except those "Content" and "Stack trace" don't actually do anything. Was there supposed to be some JavaScript that would handle clicks on .requests-toolbar-open links in order to show hidden table rows?

Thanks, Igor

yigor avatar Feb 05 '19 21:02 yigor

Hi, yes there is Javascript (https://github.com/ENERGYLINX/django-debug-toolbar-requests/blob/master/requests_toolbar/templates/requests_toolbar/panels/requests.html#L67) could you look at into browser's console? Maybe there is the bug.

rbas avatar Feb 06 '19 12:02 rbas

Ah, now I see what's going on. You are using jQuery but django-debug-toolbar removed jQuery dependency in 1.10. So your code doesn't work because djdt.jQuery is undefined. Downgrading django-debug-toolbar to 1.9.1 kind of did the trick.

yigor avatar Feb 06 '19 15:02 yigor

Ah, I didn't noticed... I'm still using the old one. Could you fix it, please?

rbas avatar Feb 06 '19 15:02 rbas

Fixed in #3

yigor avatar Feb 06 '19 19:02 yigor

Great, I'll check and release it.

rbas avatar Feb 07 '19 10:02 rbas