Scripts like Navigation Popups can use this to bind to these events so they can
setup their code to work with the previews.
Patch by User:Amalthea
== Patch Contributors ==
* Agbad
* Ahmad Sherif
+* Amalthea
* Antonio Ospite
* Azliq7
* Bawolff
* (bug 23429) Added new hook WatchlistEditorBuildRemoveLine
* (bug 18488) Added maintenance script refreshCategoryCounts.php
* (bug 22844) Added support for WinCache object caching
+* (bug 23580) Add two new events to LivePreview so that scripts can be
+ notified about the beginning and finishing of LivePreview actions
=== Bug fixes in 1.17 ===
* (bug 17560) Half-broken deletion moved image files to deletion archive
function doLivePreview( e ) {
e.preventDefault();
+
+ $j( mw ).trigger( 'LivePreviewPrepare' );
var postData = $j('#editform').formToArray();
postData.push( { 'name' : 'wpPreview', 'value' : '1' } );
} );
loadSpinner.remove();
+
+ $j( mw ).trigger( 'LivePreviewDone', [copyElements] );
} );
}