Uncaught TypeError: jQuery(…).tablesorter is not a

2019-02-20 20:07发布

I have a typo3 plugin hat works fine in typo3 6.2.31 now I migrate to 7.6.23. I have several problems with jQuery libraries. I often got this error:

Uncaught TypeError: jQuery(...).tablesorter is not a function

Or

Uncaught TypeError: $(...).tablesorter is not a function

The library is loaded correctly. Is there a way to fix this issue? Thanks.

2条回答
2楼-- · 2019-02-20 20:14

Check that there is a loaded tablesorter plugin first before the tyop3 plugin, sounds like ideal sort order would be:

  1. jQuery library
  2. Tablesorter plugin
  3. Typo3 plugin
查看更多
做自己的国王
3楼-- · 2019-02-20 20:16

A working solution is:

TYPO3.jQuery(".table.sortable").tablesorter();
查看更多
登录 后发表回答