Fix #237 with addition of new "dismissonok" property. If false is chosen you have to call unp.closeDialog('medial') to close the dialog when you're done.