package/ui/phpvirtualbox/js/utils.js
/**
 * Return VRDE host address of VM
 * @param {Object} vm - virtual machine object
 * @return {String} VRDE host for VM
 */
Return VRDE host address of VM
@param {Object} vm - virtual machine object
@return {String} VRDE host for VM
Return VRDE host address of VM @param { Object } vm - virtual machine object @return { String } VRDE host for VM
function vboxGetVRDEHost(vm) {
	var chost = ($('#vboxPane').data('vboxConfig').consoleHost ? $('#vboxPane').data('vboxConfig').consoleHost : (vm && vm.VRDEServer && vm.VRDEServer.netAddress ? vm.VRDEServer.netAddress : null));
	if(!chost) {
		chost = $('#vboxPane').data('vboxConfig').host;
		if(!chost || chost == 'localhost' || chost == '127.0.0.1')
			chost = location.hostname;
	}
	return chost;
}
function vboxGetVRDEHost ( vm ) { var chost = ( $ ( '#vboxPane' ) . data ( 'vboxConfig' ) . consoleHost ? $ ( '#vboxPane' ) . data ( 'vboxConfig' ) . consoleHost : ( vm && vm . VRDEServer && vm . VRDEServer . netAddress ? vm . VRDEServer . netAddress : null ) ) ; if ( ! chost ) { chost = $ ( '#vboxPane' ) . data ( 'vboxConfig' ) . host ; if ( ! chost || chost == 'localhost' || chost == '127.0.0.1' ) chost = location . hostname ; } return chost ; }
Return VRDE host address of VM
 @param {Object} vm - virtual machine object
 @return {String} VRDE host for VM
Return VRDE host address of VM @param { Object } vm - virtual machine object @return { String } VRDE host for VM
// Set to host
 // Check for localhost / 127.0.0.1
