diff --git a/src/sunstone/public/app/utils/dialogs/dialog.js b/src/sunstone/public/app/utils/dialogs/dialog.js index 1de19dbc95..d1bd36cfc3 100644 --- a/src/sunstone/public/app/utils/dialogs/dialog.js +++ b/src/sunstone/public/app/utils/dialogs/dialog.js @@ -25,6 +25,12 @@ define(function(require) { that.onShow(dialogElement); }); + dialogElement.on('opened.fndtn.close', function (e) { + if (that.onClose) { + that.onClose(dialogElement); + } + }); + dialogElement.on('click', '.resetDialog', function() { that.reset(); that.show();