Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -741,14 +741,14 @@ |
742 | 742 | |
743 | 743 | /** |
744 | 744 | * Create a recoverable error -- show the form again, and highlight the problematic field. Go to error state but do not block submission |
745 | | - * @param {String} name of field |
| 745 | + * @param {String} id of input field -- presumed to be within this upload's details form. |
746 | 746 | * @param {String} error message to show |
747 | 747 | */ |
748 | | - recoverFromError: function( fieldname, errorMessage ) { |
| 748 | + recoverFromError: function( fieldId, errorMessage ) { |
749 | 749 | this.upload.state = 'error'; |
750 | 750 | this.dataDiv.morphCrossfade( '.detailsForm' ); |
751 | | - this.$form.find( '[name=' + fieldname + ']' ).addClass( 'mwe-error' ); |
752 | | - this.$form.find( 'label[for=' + fieldname + '].errorRecovery' ).html( errorMessage ).show(); |
| 751 | + $j( '#' + fieldId ).addClass( 'mwe-error' ); |
| 752 | + this.$form.find( 'label[for=' + fieldId + '].errorRecovery' ).html( errorMessage ).show(); |
753 | 753 | }, |
754 | 754 | |
755 | 755 | /** |