This should use shared/js/custom_dialog.js like the system part.