https://bugzilla.wikimedia.org/show_bug.cgi?id=38704
Web browser: ---
Bug #: 38704
Summary: Cloned sortable tables throw JavaScript errror
Product: MediaWiki
Version: 1.20-git
Platform: All
URL: https://commons.wikimedia.org/w/index.php?title=Common
s:Sandbox&oldid=74898123
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Steps to reproduce:
1. Create a sortable table (like the one in the provided url)
2. Execute $('table.sortable').clone(true /* = with data and eventhandlers
*/).appendTo(mw.util.$content);
3. Click the headers of the new table.
Expected result: The table sorts correctly.
Actual result: An error is thrown: h[list[i][0]] is undefined
--
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