https://bugzilla.wikimedia.org/show_bug.cgi?id=36310
TMg <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #6 from TMg <[email protected]> 2012-05-30 22:19:46 UTC --- I'm not sure if this is a bug in jQuery or in MediaWiki. But it is a major problem because of this bug no Opera user can enter a reason when moving a page. The textarea is locked. I'm not allowed to enter anything. Here is what happens: In the script http://bits.wikimedia.org/static-1.20wmf3/resources/mediawiki.special/mediawiki.special.movePage.js the line $( '#wpReason, #wpNewTitleMain' ).byteLimit(); is called. The idea is to add JavaScript handlers to two input fields. I'm not sure why because such limits should be set by adding an maxlength attribute, but anyway. This calls a method found in the script http://bits.wikimedia.org/static-1.20wmf3/resources/jquery/jquery.byteLimit.js The code in this script basically looks for an attribute called "maxLength". But since the textarea #wpReason does not have a maxlength it returns -1 and uses this number to set a maxlength attribute. I'm not sure if this makes sense. Again: It reads the number from the maxlength attribute and all it does is setting the maxlength attribute to this number? Why? I did a test with Firefox and Opera, it's the same bug. Possible fixes: # In the script http://bits.wikimedia.org/static-1.20wmf3/resources/jquery/jquery.byteLimit.js change the line if ( fn === undefined ) { into if ( fn === undefined && limit !== undefined && elLimit >= 0 ) { # In the script http://bits.wikimedia.org/static-1.20wmf3/resources/mediawiki.special/mediawiki.special.movePage.js change the line $( '#wpReason, #wpNewTitleMain' ).byteLimit(); to $( '#wpNewTitleMain' ).byteLimit(); $( '#wpReason' ).byteLimit(255); //not sure about the number -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
