View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036968 | mantisbt | performance | public | 2026-03-13 10:25 | 2026-04-10 13:15 |
| Reporter | raspopov | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.28.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0036968: Restricting DateTimePicker loading by pages that use it. | ||||
| Description | It is proposed that the loading of the Bootstrap DateTimePicker.js and Moment.js libraries be restricted to only those pages that actually use them:
| ||||
| Additional Information | The same approach as in 0036967. | ||||
| Tags | No tags attached. | ||||
|
I was able to limit script loading not only by page, but also by specific settings within each page. |
|
|
MantisBT: master fb0bfcf5 2026-03-13 10:48 Committer: dregad Details Diff |
Restrict DateTimePicker loading to pages using it New DateTimePicker API: datetimepicker_print() and datetimepicker_get_field() functions. Moved and fixed DateTimePicker and MantisGraph code from common.js to datetimepicker-proxy.js and MantisGraph.js. Added some missed <label> tags. Fixes 0036968 Signed-off-by: Damien Regad <dregad@mantisbt.org> Removed introduction of Today button (split to separate commit). |
Affected Issues 0036968 |
|
| mod - bug_actiongroup_page.php | Diff File | ||
| mod - bug_change_status_page.php | Diff File | ||
| mod - bug_report_page.php | Diff File | ||
| mod - bug_update_page.php | Diff File | ||
| add - core/datetimepicker_api.php | Diff File | ||
| mod - core/layout_api.php | Diff File | ||
| mod - js/common.js | Diff File | ||
| add - js/datetimepicker-proxy.js | Diff File | ||
| mod - manage_proj_ver_edit_page.php | Diff File | ||
| mod - plugins/MantisGraph/core/Period.php | Diff File | ||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
| mod - plugins/MantisGraph/pages/issues_trend_page.php | Diff File | ||
| mod - view.php | Diff File | ||
|
MantisBT: master 5bad473b 2026-04-09 11:08 Committer: dregad Details Diff |
Only load datetimepicker API when actually needed Fixes 0036968 Signed-off-by: Damien Regad <dregad@mantisbt.org> Reworded commit message |
Affected Issues 0036968 |
|
| mod - bug_actiongroup_page.php | Diff File | ||
| mod - bug_change_status_page.php | Diff File | ||
| mod - bug_report_page.php | Diff File | ||
| mod - bug_update_page.php | Diff File | ||
| mod - bug_view_inc.php | Diff File | ||
| mod - view.php | Diff File | ||