package/ui/phpvirtualbox/js/utils.js
/** 
 * OnUnload warning shown when an operation is in progress
 * @return {String} warning message indicating operation is in progress
 */
OnUnload warning shown when an operation is in progress
@return {String} warning message indicating operation is in progress
OnUnload warning shown when an operation is in progress @return { String } warning message indicating operation is in progress
function vboxOpInProgressCheck() {
	if($('#vboxProgressOps').children('div.vboxProgressOpElement:not(.vboxProgressComplete)').addClass('vboxProgressRunning').length) {
		return trans('Warning: A VirtualBox internal operation is in progress. Closing this window or navigating away from this web page may cause unexpected and undesirable results. Please wait for the operation to complete.','phpVirtualBox');
	}
}
function vboxOpInProgressCheck ( ) { if ( $ ( '#vboxProgressOps' ) . children ( 'div.vboxProgressOpElement:not(.vboxProgressComplete)' ) . addClass ( 'vboxProgressRunning' ) . length ) { return trans ( 'Warning: A VirtualBox internal operation is in progress. Closing this window or navigating away from this web page may cause unexpected and undesirable results. Please wait for the operation to complete.' , 'phpVirtualBox' ) ; } }
OnUnload warning shown when an operation is in progress
 @return {String} warning message indicating operation is in progress
OnUnload warning shown when an operation is in progress @return { String } warning message indicating operation is in progress