Skip to content

Commit

Permalink
Update jquery.tablesorter.js plugin
Browse files Browse the repository at this point in the history
Update to the latest `v2.31.3` version of this `jquery` plugin, which
unblocks upgrading to `jquery` >= `1.9.x`.

Using a fork because:

1. The original repo hasn't been updated in seven years: https://github.com/christianbach/tablesorter
2. The most recent committer to the original repo ☝️  now maintains the fork.
3. The fork was updated just a few months ago.
4. The fork supports the latest versions of `jquery`:
     > Works with jQuery 1.9+ (`$.browser.msie` was removed; needed in the original version)

As far as I can tell, no other changes are needed.

This is a straight copy/paste of the non-minized code from: https://github.com/Mottie/tablesorter

I used non-minimized for simplicity, since this is a dev-only tool, the
perf impacts of minimization don't really matter.

I tested this manually by:

```shell
$ cd flask-debugtoolbar/test
$ flask --app basic_app run --debug
```

Then loading `http://127.0.0.1:5000/` in a recent version of Chrome and
finding a FDBT panel that uses the sorter. In this case, the SQLAlchemy
panel. I visually compared behavior pre/past upgrade and it appeared
identical. There may be additional warnings/errors that I don't see in
the browser, but I'm pretty ignorang on Javascript.

Related:
* #166
  • Loading branch information
jeffwidman committed Apr 11, 2024
1 parent efe447f commit c6c9362
Showing 1 changed file with 2,914 additions and 1,031 deletions.
Loading

0 comments on commit c6c9362

Please sign in to comment.