Update dialog.js

Allow dialog button to return false to cancel dialog hide.