Problema con jquery tablesorter y {sorter: false}

Seem to be having an issue with the tablesorter plugin and excluding columns for sorting. In the documentation: you can add a class to the th (class="{sorter: false}") so sorting is disabled on that column. This does not seem to work and also his example on that page does not work. If you inspect the source you can see that the class is specified on 2 columns but they are still sortable.

I know this used to work as I have a project which uses it and it works. I am however using an older version of jquery in that project so that is probably the issue. Maybe the meta-data is not compatible with the latest version of jquery?

¿Alguien más tiene el mismo problema?


preguntado el 08 de noviembre de 11 a las 09:11

2 Respuestas

Hmm, I'm not sure why the metadata isn't registering - I have a demostración de trabajo aquí

But I wanted to add that I ended up adding a fork of the plugin de tablesorter en github. I've also made it so you can just use a class name instead of relying on metadata, like this class="sorter-false" - aquí está el manifestación.

respondido 09 nov., 11:06

Seems that setting sorter to false in any means is not working. It does not work on the documentation page either: - Zed

Thanks @zed, that problem has been fixed in v2.30.4 (problem was introduced in v2.30.3). - Pajarito

The issue is that there is a 404 error for file "" just fix this and it will work.

Respondido el 18 de enero de 13 a las 12:01

Mottie's forked version is handy but this should be the correct answer. - Molomby

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.