package/ui/phpvirtualbox/js/dialogs.js
/**
 * Display guest network adapters dialog
 * @param {String} vm - virtual machine uuid or name
 */
Display guest network adapters dialog
@param {String} vm - virtual machine uuid or name
Display guest network adapters dialog @param { String } vm - virtual machine uuid or name
function vboxGuestNetworkAdaptersDialogInit(vm) {
	$('#vboxPane').append($('<div />').attr({'id':'vboxGuestNetworkDialog','style':'display: none'}));
	var l = new vboxLoader();
	l.addFileToDOM('panes/guestNetAdapters.html',$('#vboxGuestNetworkDialog'));
	l.onLoad = function(){
		var buttons = {};
		buttons[trans('Close','UIVMLogViewer')] = function() {$('#vboxGuestNetworkDialog').trigger('close').empty().remove();};
		$('#vboxGuestNetworkDialog').dialog({'closeOnEscape':true,'width':500,'height':250,'buttons':buttons,'modal':true,'autoOpen':true,'dialogClass':'vboxDialogContent','title':'<img src="images/vbox/nw_16px.png" class="vboxDialogTitleIcon" /> ' + trans('Guest Network Adapters','VBoxGlobal')}).on("dialogbeforeclose",function(){
	    	$(this).parent().find('span:contains("'+trans('Close','UIVMLogViewer')+'")').trigger('click');
	    });
		vboxVMNetAdaptersInit(vm,nic);
	};
	l.run();
}
function vboxGuestNetworkAdaptersDialogInit ( vm ) { $ ( '#vboxPane' ) . append ( $ ( '<div />' ) . attr ( { 'id' : 'vboxGuestNetworkDialog' , 'style' : 'display: none' } ) ) ; var l = new vboxLoader ( ) ; l . addFileToDOM ( 'panes/guestNetAdapters.html' , $ ( '#vboxGuestNetworkDialog' ) ) ; l . onLoad = function ( ) { var buttons = { } ; buttons [ trans ( 'Close' , 'UIVMLogViewer' ) ] = function ( ) { $ ( '#vboxGuestNetworkDialog' ) . trigger ( 'close' ) . empty ( ) . remove ( ) ; } ; $ ( '#vboxGuestNetworkDialog' ) . dialog ( { 'closeOnEscape' : true , 'width' : 500 , 'height' : 250 , 'buttons' : buttons , 'modal' : true , 'autoOpen' : true , 'dialogClass' : 'vboxDialogContent' , 'title' : '<img src="images/vbox/nw_16px.png" class="vboxDialogTitleIcon" /> ' + trans ( 'Guest Network Adapters' , 'VBoxGlobal' ) } ) . on ( "dialogbeforeclose" , function ( ) { $ ( this ) . parent ( ) . find ( 'span:contains("' + trans ( 'Close' , 'UIVMLogViewer' ) + '")' ) . trigger ( 'click' ) ; } ) ; vboxVMNetAdaptersInit ( vm , nic ) ; } ; l . run ( ) ; }
Display guest network adapters dialog
 @param {String} vm - virtual machine uuid or name
Display guest network adapters dialog @param { String } vm - virtual machine uuid or name
/*
	 * 	Dialog
	 */ /*
	 * Loader
	 */ // defined in pane
