attach handlers to document instead of filelist, minor whitespace cleanups
Merge pull request #1537 from owncloud/fix_sharing_dropdown_event_handlers

attach handlers to document instead of filelist