wire/modules/Page/PageFrontEdit/PageFrontEdit.js
/**
	 * Initialize all modal edit regions
	 *
	 * @param t
	 *
	 */
Initialize all modal edit regions
@param t
Initialize all modal edit regions @param t
function modalInitEditableRegions() {
		var regions = $('.pw-edit-modal');
		if(!regions.length) return;
		$(document).on('pw-modal-closed', function(e, eventData) {
			if(eventData.abort) return; 
			var target = $(e.target);
			if(!target.hasClass('pw-edit-modal')) return;
			var targetID = target.attr('id');
			var viewURL = $('#pw-url').val();
			viewURL += (viewURL.indexOf('?') > -1 ? '&' : '?') + 'pw_edit_fields=' + target.attr('data-fields');
			setBusy(true);
			target.load(viewURL + ' #' + targetID, {}, function() {
				var t = $(this);
				var children = t.children();
				if(children.length) {
					var html = t.children().html();
					t.html(html);
				}
				t.trigger('pw-reloaded');
				setBusy(false);
			});
		});
	}
function modalInitEditableRegions ( ) { var regions = $ ( '.pw-edit-modal' ) ; if ( ! regions . length ) return ; $ ( document ) . on ( 'pw-modal-closed' , function ( e , eventData ) { if ( eventData . abort ) return ; var target = $ ( e . target ) ; if ( ! target . hasClass ( 'pw-edit-modal' ) ) return ; var targetID = target . attr ( 'id' ) ; var viewURL = $ ( '#pw-url' ) . val ( ) ; viewURL += ( viewURL . indexOf ( '?' ) > - 1 ? '&' : '?' ) + 'pw_edit_fields=' + target . attr ( 'data-fields' ) ; setBusy ( true ) ; target . load ( viewURL + ' #' + targetID , { } , function ( ) { var t = $ ( this ) ; var children = t . children ( ) ; if ( children . length ) { var html = t . children ( ) . html ( ) ; t . html ( html ) ; } t . trigger ( 'pw-reloaded' ) ; setBusy ( false ) ; } ) ; } ) ; }
Initialize all modal edit regions
 @param t
Initialize all modal edit regions @param t
// modal.js populates 'abort' if "x" button was clicked