Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDeed.js |
— | — | @@ -51,8 +51,8 @@ |
52 | 52 | |
53 | 53 | var _this = new mw.UploadWizardDeed(); |
54 | 54 | |
55 | | - _this.authorInput = $j( '<input />') |
56 | | - .attr( { name: "author", type: "text" } ) |
| 55 | + _this.authorInput = $j( '<input type="text" />' ) |
| 56 | + .attr( { name: "author" } ) |
57 | 57 | .addClass( 'mwe-upwiz-sign' ); |
58 | 58 | |
59 | 59 | var licenseInputDiv = $j( '<div class="mwe-upwiz-deed-license"></div>' ); |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | |
95 | 95 | _this.$form = $j( '<form />' ); |
96 | 96 | |
97 | | - var $authorInput2 = $j( '<input />' ).attr( { name: "author2", type: "text" } ).addClass( 'mwe-upwiz-sign' ); |
| 97 | + var $authorInput2 = $j( '<input type="text" />' ).attr( { name: "author2" } ).addClass( 'mwe-upwiz-sign' ); |
98 | 98 | var $standardDiv = $j( '<div />' ).append( |
99 | 99 | $j( '<label for="author2" generated="true" class="mwe-validator-error" style="display:block;" />' ), |
100 | 100 | $j( '<p></p>' ).msg( 'mwe-upwiz-source-ownwork-assert', |
Index: trunk/extensions/UploadWizard/resources/mw.ApiUploadHandler.js |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | */ |
77 | 77 | addFormInputIfMissing: function( name, value ) { |
78 | 78 | if ( this.$form.find( "[name='" + name + "']" ).length === 0 ) { |
79 | | - this.$form.append( $j( '<input />' ) .attr( { 'type': "hidden", 'name': name, 'value': value } )); |
| 79 | + this.$form.append( $j( '<input type="hidden" />' ) .attr( { 'name': name, 'value': value } )); |
80 | 80 | } |
81 | 81 | }, |
82 | 82 | |