This request is featured by an real problem i have:
No i ended up to <script src=".../jquery...js> include direct into layouts base.rthml before js heads and use it by theme.js "jquery(document).ready()" block in my theme.
That is not the code seperation i aimed, means to pack all into the theme. Futhermore i hade to extens layouts base rhtml sidebar div with my slider class handler and onlick tag. THis again i couldn't pack into theme, cause there is no html injection or kind or templating possible.
Everyone is welcome to show me direction how redmine themes can apply thing better "seperated" without core modification, however sidebar slider works now like a charm
I wanna male sidebar menue use accordion qith jquery too and top menu stay fixd (when scolled) with css.
I really wanna share this, but as theme package without base.rhtml mod i don't get it done.
It works but i need to extend the base.rhtml to include jquery before loading theme.js. If i put the js into theme (where i only can load one js file btw. #11424 ) it's not available when rendering the sidebar.
Furthemore the apprach that every plugin can bring its own js is really ugly from architects view. You can get loaded several versions of the the same js e.g. jquery lib, and don't know which one's forced at last/first.
It would need a redmine (rails?)Javscript Handler core class, where every plugin must register its js libs being used (e.G. in init.rb) with name, version and url. This controller will at least throw error if js already registered with same name or warning if with similar name.