See #1027786: Remove soft-dependency on Block module
We should get rid of hook_init and add the appropriate css and js as needed, including creating a separate .admin.js for the report page.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | feedback.assets.5.patch | 2.51 KB | sun |
| #4 | 1147476.patch | 2.43 KB | jody lynn |
| #3 | 1147476.patch | 1.85 KB | jody lynn |
Comments
Comment #1
sunVery good idea :)
Only possible in D7, since D6 does not allow to add JS/CSS to the page at the time the feedback widget is rendered.
Comment #2
sunoh, that said, I'd love to additionally separate the non-admin CSS into feedback.base.css and feedback.theme.css, following core's lead on proper separation of logic/functionality and visual styling.
Comment #3
jody lynnThere actually wasn't any css other than for the feedback form itself, so I just split up the js.
Comment #4
jody lynnCorrect patch
Comment #5
sunCommitted with slight adjustments — whenever possible, use #attached instead.