Index: branches/js2-work/phase3/js/mwEmbed/modules/UploadWizard/mw.UploadWizard.js |
— | — | @@ -1629,8 +1629,8 @@ |
1630 | 1630 | $j( '#mwe-upwiz-source-thirdparty' ).click( function() { _this.showDeedThirdParty(); } ); |
1631 | 1631 | $j( '#mwe-upwiz-source-thirdparty' ).click( function() { _this.showDeedChoice() } ); |
1632 | 1632 | |
1633 | | - $j( '.mwe-upwiz-macro-edit-submit' ).each( |
1634 | | - this.append( $j( '<input />' ) |
| 1633 | + $j( '.mwe-upwiz-macro-edit-submit' ).each( function() { |
| 1634 | + $j( this ).append( $j( '<input />' ) |
1635 | 1635 | .addClass( 'mwe-details-submit' ) |
1636 | 1636 | .attr( { type: 'submit', value: gM( 'mwe-upwiz-macro-edit' ) } ) |
1637 | 1637 | .click( function() { |
— | — | @@ -1641,7 +1641,7 @@ |
1642 | 1642 | _this.moveToTab('thanks'); |
1643 | 1643 | } ); |
1644 | 1644 | } ) ); |
1645 | | - ); |
| 1645 | + } ); |
1646 | 1646 | |
1647 | 1647 | |
1648 | 1648 | // add one to start |
— | — | @@ -2042,7 +2042,7 @@ |
2043 | 2043 | // transition ? |
2044 | 2044 | |
2045 | 2045 | var sourceInput = $j( '<input />').attr( { name: "source", value: "{{ownwork}}" } ); |
2046 | | - var authorInput = $j( '#mwe-upwiz-macro-deed-ownwork-form' ).find( 'input[name=author]' ).get(0); |
| 2046 | + var authorInput = $j( '<input />').attr( { name: "author" } ); // value set below |
2047 | 2047 | var licenseInputDiv = $j( '<div></div>' ); |
2048 | 2048 | var licenseInput = new mw.UploadWizardLicenseInput( licenseInputDiv ); |
2049 | 2049 | licenseInput.setDefaultValues(); |