Prevent event bubbling on modal dialog and add on dialog example(ondialog.html).