Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0dd1fb48ec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| $row_cnt = ($result instanceof mysqli_result) ? mysqli_num_rows($result) : 0; | ||
| ?> | ||
| <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | ||
| <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> |
There was a problem hiding this comment.
Include jQuery before invoking jQuery UI
The refactor removed the page-level jQuery import but still loads jquery-ui.js and then calls $(function() { ... }) on this page. In this codebase, jQuery is loaded later from footer.php, so at this point $/jQuery is not guaranteed to exist, which causes a runtime error and prevents the datepicker filter UI from initializing. Load jQuery before jquery-ui.js (or move this initializer to run after the existing footer jQuery script).
Useful? React with 👍 / 👎.
refactor of list.php