[FIX] tracker files: Use js to access galleryId and filter vars so only one copy of this code gets added to the page. Reduces problems with multiple files fields on one form.

git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/12.x@47985 b456876b-0849-0410-b77d-98878d47e9d5