Last modified: 2014-07-03 21:58:58 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 T12013, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10013 - Implement client-side filtering of tables using javascript
Implement client-side filtering of tables using javascript
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-23 03:45 UTC by Scott Alter
Modified: 2014-07-03 21:58 UTC (History)
4 users (show)

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


Attachments

Description Scott Alter 2007-05-23 03:45:20 UTC
A nice addition to the software would be a way to filter the rows of a table based on an entered (or selected) expression.  What I mean by this is that if you have a large table with one field of nominal values, you would be able to select one of the values.  Only rows containing that value in the field would be shown.  Then, you could sort the table seeing only the rows with this specific value in the field.

Examples of this in action can be seen at:
http://www.viala.hu/frdl/tablesort/tablesort.html
http://leparlement.org/filterTable

It should be easily implemented by end users, such as by adding another class to the table.
Comment 1 Brion Vibber 2007-05-23 18:21:44 UTC
Another example is that which appears on Special:Allmessages, which is horribly slow... good speed on large tables would help. :)
Comment 2 Krinkle 2011-03-08 08:56:36 UTC
I've added a little script to the Countervandalism Networks' MegaTable at the Toolserver last week:

http://toolserver.org/~cvn/MegaTable

Perhaps something like that ?

It's just a proof-of-concept, but you get the idea (type in the searchbar and hit enter. The latter triggers the search but that could be triggered after keyup instead to make it live).

I could make it into a jQuery plugin.

eg.

<table class="mw-makefiltertable">
would be treated by the plugin into:

<div> <input type=text /> </div>
<table class="mw-makefiltertable mw-madefiltertable">

--
Krinkle
Comment 3 Scott Alter 2011-03-20 20:24:28 UTC
Yes, Krinkle - that's just what I had in mind with the usage you suggested.  Your code seems to be case sensitive, but other than that, it looks good!
Comment 4 Quim Gil 2014-04-07 00:04:48 UTC
Krinkle, this report is assigned to you. Do you plan to work on it?

The current priority is Normal. However, nobody seems to have this feature in their plans? Should it be Lowest instead?
Comment 5 Andre Klapper 2014-07-03 21:58:58 UTC
Krinkle: I am resetting the assignee of this issue to default because there has been no progress in the last months. Feel free to take it again when you are actually planning to fix this. Thanks.

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


Navigation
Links