wire/templates-admin/scripts/inputfields.js
/**
 * Event to call before a page is unloaded (beforeunload event)
 * 
 * If window should not be unloaded, it returns a string of text with reason why.
 * 
 */
Event to call before a page is unloaded (beforeunload event)

If window should not be unloaded, it returns a string of text with reason why.
Event to call before a page is unloaded ( beforeunload event ) If window should not be unloaded it returns a string of text with reason why .
function InputfieldFormBeforeUnloadEvent(e) {
	var $ = jQuery;
	var $changes = $(".InputfieldFormConfirm:not(.InputfieldFormSubmitted) .InputfieldStateChanged");
	if($changes.length == 0) return;
	var msg = $('.InputfieldFormConfirm:eq(0)').attr('data-confirm') + "\n";
	$changes.each(function() {
		var $header = $(this).find(".InputfieldHeader:eq(0)");
		if($header.length) {
			name = $header.text();
		} else {
			name = $(this).attr('data-label');
			if(!name || !name.length) {
				name = $(this).find(':input').attr('name');
			}
		}
		if(name.length) msg += "\n• " + $.trim(name);
	});
	(e || window.event).returnValue = msg; 
	return msg; 
}
function InputfieldFormBeforeUnloadEvent ( e ) { var $ = jQuery ; var $changes = $ ( ".InputfieldFormConfirm:not(.InputfieldFormSubmitted) .InputfieldStateChanged" ) ; if ( $changes . length == 0 ) return ; var msg = $ ( '.InputfieldFormConfirm:eq(0)' ) . attr ( 'data-confirm' ) + "\n" ; $changes . each ( function ( ) { var $header = $ ( this ) . find ( ".InputfieldHeader:eq(0)" ) ; if ( $header . length ) { name = $header . text ( ) ; } else { name = $ ( this ) . attr ( 'data-label' ) ; if ( ! name || ! name . length ) { name = $ ( this ) . find ( ':input' ) . attr ( 'name' ) ; } } if ( name . length ) msg += "\n• " + $ t r im(n a me); } ) ; ( e || window . event ) . returnValue = msg ; return msg ; }
Event to call before a page is unloaded (beforeunload event)
Event to call before a page is unloaded ( beforeunload event )
// Gecko and Trident // Gecko and WebKit