mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-01 03:17:04 +00:00
Add jQuery event trigger for when the initial sections are done
* This is similar to wikiEditor-toolbar-buildSection-*, but for when all of the initial sections are done. * It allows other code to render after this vertical shift is done. Change-Id: I4705d09b9ef90c1ab8dad93db3f91e70c5fd4d5b
This commit is contained in:
parent
febd1b351e
commit
ede8d1d8f1
|
@ -776,6 +776,8 @@ fn: {
|
||||||
var oldValue = $( 'body' ).css( 'position' );
|
var oldValue = $( 'body' ).css( 'position' );
|
||||||
$( 'body' ).css( 'position', 'static' );
|
$( 'body' ).css( 'position', 'static' );
|
||||||
$( 'body' ).css( 'position', oldValue );
|
$( 'body' ).css( 'position', oldValue );
|
||||||
|
|
||||||
|
context.$textarea.trigger( 'wikiEditor-toolbar-doneInitialSections' );
|
||||||
},
|
},
|
||||||
'loop' : function( i, s ) {
|
'loop' : function( i, s ) {
|
||||||
s.$sections.append( $.wikiEditor.modules.toolbar.fn.buildSection( s.context, s.id, s.config ) );
|
s.$sections.append( $.wikiEditor.modules.toolbar.fn.buildSection( s.context, s.id, s.config ) );
|
||||||
|
|
Loading…
Reference in a new issue