Last modified: 2012-03-19 01:05:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37294, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35294 - jquery.byteLimit shouldn't set element specific variables outside the "return this.each" loop
jquery.byteLimit shouldn't set element specific variables outside the "return...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.19
All All
: Normal major (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-18 10:52 UTC by Umherirrender
Modified: 2012-03-19 01:05 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Umherirrender 2012-03-18 10:52:16 UTC
r110209 sets the following line

$( '#wpReason, #wpNewTitleMain' ).byteLimit();

but that adds the maxlength of #wpNewTitleMain (255) also to #wpReason and the own maxlength of #wpReason (200) is not used. When #wpNewTitleMain is removed from dom before the above line is executed, the line adds -1 to #wpReason, which break at least Opera 11 (you cannot input anything in #wpReason).

Please fix byteLimit to handle the maxLenght of each id seperatly. Thanks.
Comment 1 Krinkle 2012-03-19 01:04:51 UTC
Fixed in r114116.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links