fix #2711 using a custom event, also use css selectors over filterAttr
Merge pull request #4354 from owncloud/fix_2711_shared_icon_disappears_on_firefox

fix #2711 using a custom event, also use css selectors over filterAttr