Last modified: 2014-11-13 10:58:16 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 T75312, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73312 - Sort function with icon works only once
Sort function with icon works only once
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.6
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 31601
  Show dependency treegraph
 
Reported: 2014-11-12 15:34 UTC by SaschaRD
Modified: 2014-11-13 10:58 UTC (History)
5 users (show)

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


Attachments

Description SaschaRD 2014-11-12 15:34:10 UTC
Hello,

we are using icons in the header of a table (see the code below):

==Mitglieder:==
{| class="wikitable sortable" style="text-align: center;"
|-
! Name !! Rang !! [[File:alchemie.png|32px]] !!
|}
[[Category:Gilde]]

When a user is toggle the triangle to ascending or descending the results, it works only once. After that the user needs to refresh the whole site, otherwise the sort function doesnt work.

Is there any workaround?

Cheers, Sascha
Comment 1 Andre Klapper 2014-11-12 16:36:23 UTC
Thanks for taking the time to report this!
Which MediaWiki version is this about and is there a public testcase?
Comment 2 SaschaRD 2014-11-12 19:55:44 UTC
Hello Andre,

its testable on our wiki site, which is http://wiki.insane-archeage.com/index.php?title=Mitglieder

We are using the version 1.23.6 of MediaWiki (i also updated it at the top).

Cheers, Sascha
Comment 3 Andre Klapper 2014-11-12 22:04:22 UTC
Using http://wiki.insane-archeage.com/index.php?title=Mitglieder&debug=true and the browser console I get:
     TypeError: parsers[j] is undefined
for /resources/src/jquery/jquery.tablesorter.js line 218 which is:

for ( var j = 0; j < totalCells; ++j ) {
	cols.push( parsers[j].format( getElementSortKey( $row[0].cells[j] ),
        table, $row[0].cells[j] ) );
}
Comment 4 SaschaRD 2014-11-13 08:03:15 UTC
Good morning Andre,

is this a bug in MediaWiki? Or did i some wrong configurations by installing MediaWiki?

Cheers, Sascha
Comment 5 Andre Klapper 2014-11-13 09:26:01 UTC
I don't know - I'm not a developer. :)
Comment 6 Derk-Jan Hartman 2014-11-13 09:41:53 UTC
Your table is malformed

The majority of rows is missing two cells at the end.

Having said that, I should add a null check there, and throw a warning with a hint as to the cause, when this happens.
Comment 7 SaschaRD 2014-11-13 10:46:52 UTC
I fixed the malformed table (by adding the missing cells).

And now the sort function works properly.

It was very helpful

Cheers, Sascha
Comment 8 Andre Klapper 2014-11-13 10:58:16 UTC
No code was fixed in the codebase, hence closing as INVALID.

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


Navigation
Links