fix https://github.com/owncloud/core/issues/3320
add event.preventDefault to undelete function
Merge pull request #3506 from owncloud/fix_3320

fix https://github.com/owncloud/core/issues/3320