mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
feature #3748: Fix onClose event for dialogs
This commit is contained in:
parent
735f80e15c
commit
a648dc743a
@ -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);
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function sendCtrlAltDel() {
|
||||
if (_rfb) { rfb.sendCtrlAltDel(); }
|
||||
if (_rfb) { _rfb.sendCtrlAltDel(); }
|
||||
}
|
||||
|
||||
//This is taken from noVNC examples
|
||||
|
Loading…
x
Reference in New Issue
Block a user