Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jquery.tablesorter.js plugin #235

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Apr 11, 2024

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:

$ 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.

Related:

@jeffwidman jeffwidman force-pushed the update-jquery-table-sorter branch 5 times, most recently from 4737f5f to e85abd4 Compare April 11, 2024 15:48
@jeffwidman jeffwidman force-pushed the update-jquery-table-sorter branch 3 times, most recently from f29a97a to 72a56f2 Compare April 12, 2024 01:19
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.

Related:
* #166
@jeffwidman jeffwidman merged commit 56beb35 into master Apr 13, 2024
10 checks passed
@jeffwidman jeffwidman deleted the update-jquery-table-sorter branch April 13, 2024 13:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants