use on to add event listener instead of deprecated jquery bind
Merge pull request #4707 from owncloud/use_on_instead_of_deprecated_bind

use on to add event listener instead of deprecated jquery bind