Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -676,8 +676,8 @@ |
677 | 677 | // we have uploads ready to go, so allow us to proceed |
678 | 678 | $j( '#mwe-upwiz-upload-ctrl-container' ).show(); |
679 | 679 | |
680 | | - // changes the "click here to add files" to "add another file" |
681 | | - $j( '#mwe-upwiz-add-file span' ).msg( 'mwe-upwiz-add-file-n' ); |
| 680 | + // changes the initial centered invitation button to something like "add another file" |
| 681 | + $j( '#mwe-upwiz-add-file' ).button( 'option', 'label', gM( 'mwe-upwiz-add-file-n' ) ); |
682 | 682 | $j( '#mwe-upwiz-add-file-container' ).removeClass('mwe-upwiz-add-files-0'); |
683 | 683 | $j( '#mwe-upwiz-add-file-container' ).addClass('mwe-upwiz-add-files-n'); |
684 | 684 | |
— | — | @@ -693,10 +693,8 @@ |
694 | 694 | $j( '#mwe-upwiz-filelist .filled:even' ).removeClass( 'odd' ); |
695 | 695 | } else { |
696 | 696 | // no uploads, so don't allow us to proceed |
697 | | - // $j( '#mwe-upwiz-upload-ctrl' ).attr( 'disabled', 'disabled' ); |
698 | 697 | $j( '#mwe-upwiz-upload-ctrl-container' ).hide(); |
699 | 698 | |
700 | | - |
701 | 699 | // remove the border from the filelist. We can't hide it or make it invisible since it contains the displaced |
702 | 700 | // file input element that becomes the "click here to add" |
703 | 701 | $j( '#mwe-upwiz-filelist' ).removeClass( 'mwe-upwiz-filled-filelist' ); |
— | — | @@ -704,8 +702,8 @@ |
705 | 703 | // we can't continue |
706 | 704 | $j( '#mwe-upwiz-stepdiv-file .mwe-upwiz-buttons' ).hide(); |
707 | 705 | |
708 | | - // change "add another file" into "click here to add a file" |
709 | | - $j( '#mwe-upwiz-add-file span' ).msg( 'mwe-upwiz-add-file-0-free' ); |
| 706 | + // changes the button back from "add another file" to the initial centered invitation button |
| 707 | + $j( '#mwe-upwiz-add-file' ).button( 'option', 'label', gM( 'mwe-upwiz-add-file-0-free' ) ); |
710 | 708 | $j( '#mwe-upwiz-add-file-container' ).addClass('mwe-upwiz-add-files-0'); |
711 | 709 | $j( '#mwe-upwiz-add-file-container' ).removeClass('mwe-upwiz-add-files-n'); |
712 | 710 | |
— | — | @@ -737,11 +735,11 @@ |
738 | 736 | |
739 | 737 | // allow an "add another upload" button only if we aren't at max |
740 | 738 | if ( _this.uploads.length < _this.maxUploads ) { |
741 | | - $j( '#mwe-upwiz-add-file' ).removeAttr( 'disabled' ); |
| 739 | + $j( '#mwe-upwiz-add-file' ).button( 'option', 'disabled', false ); |
742 | 740 | $j( _this.uploadToAdd.ui.div ).show(); |
743 | 741 | _this.uploadToAdd.ui.moveFileInputToCover( '#mwe-upwiz-add-file' ); |
744 | 742 | } else { |
745 | | - $j( '#mwe-upwiz-add-file' ).attr( 'disabled', true ); |
| 743 | + $j( '#mwe-upwiz-add-file' ).button( 'option', 'disabled', true ); |
746 | 744 | $j( _this.uploadToAdd.ui.div ).hide(); |
747 | 745 | } |
748 | 746 | |