IE8 does not support window.onclick
Merge pull request #1833 from owncloud/fix_1465

Fix 1465