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:
Matthew Flaschen 2013-01-28 23:02:42 -05:00
parent febd1b351e
commit ede8d1d8f1

View file

@ -776,6 +776,8 @@ fn: {
var oldValue = $( 'body' ).css( 'position' );
$( 'body' ).css( 'position', 'static' );
$( 'body' ).css( 'position', oldValue );
context.$textarea.trigger( 'wikiEditor-toolbar-doneInitialSections' );
},
'loop' : function( i, s ) {
s.$sections.append( $.wikiEditor.modules.toolbar.fn.buildSection( s.context, s.id, s.config ) );