feature #3748: Fix onClose event for dialogs

This commit is contained in:
Daniel Molina committed 2015-06-25 18:52:40 +02:00
1 parent 735f80e15c
commit a648dc743a
3 files changed
+5 -3

No files matched your search

@@ -67,7 +67,7 @@ define(function(require) {
return false;
}
function _onClose(context) {
function _onClose(context) {
Vnc.disconnect();
Vnc.unlock();
return false;
@@ -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);
}
+1 -1
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