1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

feature #3748: Fix onClose event for dialogs

This commit is contained in:
Daniel Molina
2015-06-25 18:20:12 +02:00
parent 735f80e15c
commit a648dc743a
3 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,9 @@ define(function(require) {
that.onShow(dialogElement);
});
dialogElement.on('opened.fndtn.close', function (e) {
dialogElement.on('close.fndtn.reveal', function (e) {
if (e.namespace !== 'fndtn.reveal') { return; }
console.log("close.reveal")
if (that.onClose) {
that.onClose(dialogElement);
}

View File

@ -71,7 +71,7 @@ define(function(require) {
}
function sendCtrlAltDel() {
if (_rfb) { rfb.sendCtrlAltDel(); }
if (_rfb) { _rfb.sendCtrlAltDel(); }
}
//This is taken from noVNC examples