Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -745,7 +745,16 @@ |
746 | 746 | } |
747 | 747 | $j.each( _this.descriptions, function( i, desc ) { |
748 | 748 | information['description'] += desc.getWikiText(); |
749 | | - } ); |
| 749 | + } ); |
| 750 | + |
| 751 | + // Add id field if needed |
| 752 | + if ( mw.UploadWizard.config.idField != '' ) { |
| 753 | + var idFieldValue = $j.trim( $j( _this.idFieldInput ).val() ); |
| 754 | + |
| 755 | + if ( ! mw.isEmpty( idFieldValue ) ) { // HAXXX |
| 756 | + information['description'] += mw.UploadWizard.config.idField.replace( '$1', idFieldValue ); |
| 757 | + } |
| 758 | + } |
750 | 759 | |
751 | 760 | information['date'] = $j.trim( $j( _this.dateInput ).val() ); |
752 | 761 | |
— | — | @@ -780,15 +789,6 @@ |
781 | 790 | wikiText += mw.UploadWizard.config.autoWikiText; |
782 | 791 | } |
783 | 792 | |
784 | | - // Add id field if needed |
785 | | - if ( mw.UploadWizard.config.idField != '' ) { |
786 | | - var idFieldValue = $j.trim( $j( _this.idFieldInput ).val() ); |
787 | | - |
788 | | - if ( ! mw.isEmpty( idFieldValue ) ) { // HAXXX |
789 | | - wikiText += mw.UploadWizard.config.idField.replace( '$1', idFieldValue ) + "\n\n"; |
790 | | - } |
791 | | - } |
792 | | - |
793 | 793 | // add categories |
794 | 794 | wikiText += _this.div.find( '.categoryInput' ).get(0).getWikiText() + "\n\n"; |
795 | 795 | |