https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42534

--- Comment #5 from David Cook <[email protected]> ---
So the patch I've attached is an idea I've had for a while. The idea being that
any template wrapper/include could inject Javascript into the page footer. 

It's probably worth mentioning that it relies on the Template::Toolkit being
evaluated at define time rather than call time. I think that should be OK in
most cases. 

--

As for koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc
more specifically... I don't think it actually needs admin-menu.js because the
wrapper will never match any of the paths in it.

And it doesn't need the island stuff because main-container.inc takes care of
that. So another option is to just take it all out. 

I thought I'd use this as an opportunity to showcase this idea of pushing
output chunks into an array and then printing them out in the page footer.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to