http://www.mediawiki.org/wiki/Special:Code/MediaWiki/67356

Revision: 67356
Author:   neilk
Date:     2010-06-04 18:54:36 +0000 (Fri, 04 Jun 2010)

Log Message:
-----------
fix bug to select custom licenses

Modified Paths:
--------------
    trunk/extensions/UploadWizard/js/mw.UploadWizard.js

Modified: trunk/extensions/UploadWizard/js/mw.UploadWizard.js
===================================================================
--- trunk/extensions/UploadWizard/js/mw.UploadWizard.js 2010-06-04 18:33:23 UTC 
(rev 67355)
+++ trunk/extensions/UploadWizard/js/mw.UploadWizard.js 2010-06-04 18:54:36 UTC 
(rev 67356)
@@ -1286,7 +1286,6 @@
        recountDescriptions: function() {
                var _this = this;
                // if there is some maximum number of descriptions, deal with 
that here
-               // XXX use mediawiki PLURAL, not -0 -n
                $j( _this.descriptionAdder ).html( gM( 'mwe-upwiz-desc-add-' + 
( _this.descriptions.length == 0 ? '0' : 'n' )  )  );
        },
 
@@ -1993,11 +1992,9 @@
                        // validate has the side effect of notifying the user 
of problems, or removing existing notifications.
                        // if returns false, you can assume there are 
notifications in the interface.
                        if ( _this.deedChooser.valid() ) {
-
-                               var isCustom = ( _this.deedChooser.deed.name == 
'later' );
                                
                                $j.each( _this.uploads, function( i, upload ) {
-                                       if ( isCustom ) {
+                                       if ( _this.deedChooser.deed.name == 
'custom' ) {
                                                
upload.details.useCustomDeedChooser();
                                        } else {
                                                upload.deedChooser = 
_this.deedChooser;



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to