Move append to after list builder

Change-Id: Idf4407de8ad86e3f147308c82e533f9294c65aad
This commit is contained in:
Ed Sanders 2015-03-26 13:10:30 +00:00
parent 2da4430f64
commit 8352cde31d

View file

@ -91,13 +91,6 @@ ve.ui.MWGeneralReferenceDialog.prototype.initialize = function ( data ) {
} );
refBaseButtonsFieldset.$element.append( refBasic.$element, this.refExisting.$element );
// Assemble the panel
this.panel.$element.append(
topLabel.$element,
refButtonsFieldset.$element,
refBaseButtonsFieldset.$element
);
// Attach cite dialog tools
try {
// Must use mw.message to avoid JSON being parsed as Wikitext
@ -126,6 +119,13 @@ ve.ui.MWGeneralReferenceDialog.prototype.initialize = function ( data ) {
refBasic.connect( this, { click: [ 'onDialogButtonClick', 'reference' ] } );
this.refExisting.connect( this, { click: [ 'onDialogButtonClick', 'reference', { useExisting: true } ] } );
// Assemble the panel
this.panel.$element.append(
topLabel.$element,
refButtonsFieldset.$element,
refBaseButtonsFieldset.$element
);
this.$body
.addClass( 've-ui-mwGeneralReferenceDialog' )
.append( this.panel.$element );