Index: trunk/phase3/skins/common/preview.js |
— | — | @@ -4,6 +4,8 @@ |
5 | 5 | |
6 | 6 | function doLivePreview( e ) { |
7 | 7 | e.preventDefault(); |
| 8 | + |
| 9 | + $j( mw ).trigger( 'LivePreviewPrepare' ); |
8 | 10 | |
9 | 11 | var postData = $j('#editform').formToArray(); |
10 | 12 | postData.push( { 'name' : 'wpPreview', 'value' : '1' } ); |
— | — | @@ -45,6 +47,8 @@ |
46 | 48 | } ); |
47 | 49 | |
48 | 50 | loadSpinner.remove(); |
| 51 | + |
| 52 | + $j( mw ).trigger( 'LivePreviewDone', [copyElements] ); |
49 | 53 | } ); |
50 | 54 | } |
51 | 55 | |
Index: trunk/phase3/CREDITS |
— | — | @@ -66,6 +66,7 @@ |
67 | 67 | == Patch Contributors == |
68 | 68 | * Agbad |
69 | 69 | * Ahmad Sherif |
| 70 | +* Amalthea |
70 | 71 | * Antonio Ospite |
71 | 72 | * Azliq7 |
72 | 73 | * Bawolff |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -73,6 +73,8 @@ |
74 | 74 | * (bug 23429) Added new hook WatchlistEditorBuildRemoveLine |
75 | 75 | * (bug 18488) Added maintenance script refreshCategoryCounts.php |
76 | 76 | * (bug 22844) Added support for WinCache object caching |
| 77 | +* (bug 23580) Add two new events to LivePreview so that scripts can be |
| 78 | + notified about the beginning and finishing of LivePreview actions |
77 | 79 | |
78 | 80 | === Bug fixes in 1.17 === |
79 | 81 | * (bug 17560) Half-broken deletion moved image files to deletion archive |