Add onOpenDialog and onCloseDialog javascript to admin.js
Merge pull request #2593 from ghoppe/add-dialog-js

Add onOpenDialog and onCloseDialog javascript to admin.js