View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0020040 | mantisbt | security | public | 2015-08-17 15:54 | 2026-08-21 19:27 |
| Reporter | atrol | Assigned To | syncguru | ||
| Priority | normal | Severity | block | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.0.0 | Fixed in Version | 2.0.0 | ||
| Summary | 0020040: Replace jscalendar by a newer widget | ||||
| Description | The JavaScript widget we use at the moment is no longer maintained and should be replaced by a newer and better one. | ||||
| Tags | csp, modern-ui | ||||
| related to | 0019943 | closed | atrol | Buggy calendar in due date |
| related to | 0021962 | closed | syncguru | Due Date calendar icon wraps below the field |
| related to | 0021651 | closed | syncguru | Dropzone has inline scripts in View Issue page |
| related to | 0021669 | closed | syncguru | Charts have inline scripts |
| related to | 0021873 | assigned | syncguru | Use datetime picker for date ranges in filter |
| related to | 0021874 | assigned | syncguru | Use datetime picker for date ranges in time tracking |
| related to | 0022059 | closed | dregad | Missing leading zeroes in due date display |
| related to | 0022296 | closed | atrol | Options in $g_public_config_names are not sorted |
| related to | 0022617 | closed | atrol | Unneeded CSS file calendar-blue.css |
| related to | 0022700 | closed | cproensa | Due Date in bug_change_status_page.php |
| related to | 0022984 | closed | dregad | Calendar doesn't show the correct date the first time it opens |
| related to | 0025681 | resolved | dregad | Problem with date range filter in MantisGraph issues_trend_page.php |
| child of | 0015281 | assigned | syncguru | Consistent user interface for date fields |
|
PR from user badfiles https://github.com/mantisbt/mantisbt/pull/628/ |
|
|
Oh yes, please please do this ! |
|
|
Once this control is replaced, remove the CSP exception for 'unsafe-eval' that was added in checkin df605e1d2479a01f594773a4575c2e39b5c6ade2. https://github.com/mantisbt/mantisbt/commit/df605e1d2479a01f594773a4575c2e39b5c6ade2 |
|
|
Took a quick look at the PR. I prefer using more bootstrap-y date & time picker - check this one: https://github.com/uxsolutions/bootstrap-datepicker |
|
|
@syncguru just want to be sure you read what I wrote at https://github.com/mantisbt/mantisbt/pull/628/
|
|
|
@atrol you are right. I was torn between two libraries and did not notice that time is not supported with this one. Here is the other library I'd recommend: http://eonasdan.github.io/bootstrap-datetimepicker |
|
|
Just a reminder to fix https://github.com/mantisbt/mantisbt/blob/release-2.0.0-rc.1/core/http_api.php#L236 as part of this issue. |
|
|
MantisBT: master 6f73af16 2016-11-06 17:30 Committer: dregad Details Diff |
Replace jscalendar with bootstrap-datetimepicker library - Enable datetimepciker on all pages by default - Relocate inline JS code into standalone files - Remove CSP exceptions for jscalendar - Multi-language support Fixes 0020040 |
Affected Issues 0020040, 0025681 |
|
| 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 - config_defaults_inc.php | Diff File | ||
| mod - core/constant_inc.php | Diff File | ||
| mod - core/http_api.php | Diff File | ||
| mod - core/lang_api.php | Diff File | ||
| mod - core/layout_api.php | Diff File | ||
| mod - css/ace-mantis.css | Diff File | ||
| add - css/bootstrap-datetimepicker.min.css | Diff File | ||
| add - js/bootstrap-datetimepicker.min.js | Diff File | ||
| mod - js/common.js | Diff File | ||
| rm - js/jscalendar/calendar-blue.css | Diff | ||
| rm - js/jscalendar/calendar-setup.js | Diff | ||
| rm - js/jscalendar/calendar.js | Diff | ||
| rm - js/jscalendar/lang/calendar-en.js | Diff | ||
| add - js/moment-with-locales.min.js | Diff File | ||
| mod - manage_proj_ver_edit_page.php | Diff File | ||
| mod - plugins/MantisGraph/core/Period.php | Diff File | ||
| mod - plugins/MantisGraph/pages/issues_trend_page.php | Diff File | ||
|
MantisBT: master 9720af8e 2016-11-10 18:10 Committer: dregad Details Diff |
Obsolete jscalendar global config & use compatible date format Fixes 0020040 |
Affected Issues 0020040 |
|
| 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 - config_defaults_inc.php | Diff File | ||
| mod - core/date_api.php | Diff File | ||
| mod - core/obsolete.php | Diff File | ||
| mod - javascript_config.php | Diff File | ||
| mod - manage_proj_ver_edit_page.php | Diff File | ||
|
MantisBT: master e3b86388 2016-11-20 06:45 Committer: dregad Details Diff |
Enable datetime picker for project version edit box Fixes 0020040 |
Affected Issues 0020040 |
|
| mod - manage_proj_ver_edit_page.php | Diff File | ||
|
MantisBT: master 0c00e735 2016-11-23 11:40 Committer: dregad Details Diff |
Show datetime picker when clicking calendar icon Fixes 0020040 |
Affected Issues 0020040 |
|
| mod - bug_change_status_page.php | Diff File | ||
| mod - css/ace-mantis.css | Diff File | ||
| mod - js/common.js | Diff File | ||
|
MantisBT: master 253ad741 2016-11-23 14:49 Committer: dregad Details Diff |
Misc tweaks based on code review comments - Update obsolete statements - Reduce datepicker box width to avoid icon wrapping Fixes 0020040 Signed-off-by: Damien Regad <dregad@mantisbt.org> - Whitespace adjustments - Fixed typos in comments and documentation |
Affected Issues 0020040 |
|
| 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 - config_defaults_inc.php | Diff File | ||
| mod - core/lang_api.php | Diff File | ||
| mod - core/layout_api.php | Diff File | ||
| mod - core/obsolete.php | Diff File | ||
| mod - css/ace-mantis.css | Diff File | ||
| mod - docbook/Admin_Guide/en-US/config/date.xml | Diff File | ||
| mod - js/common.js | Diff File | ||
| mod - manage_proj_ver_edit_page.php | Diff File | ||
|
MantisBT: master d827a08d 2026-07-18 10:22 Details Diff |
Fix arbitrary dates Period fields activation Following the replacement of the jscalendar date picker by jQuery (see issue 0020040), the from / to date input fields are not activated when selecting Arbitrary Dates period. This fixes the markup generated by Period.php to add the calendar icon as well as the javascript that controls the fields's activation. Using default date format (normal_date_format) for date picker fields instead of hardcoded YYYY-MM-DD. Fixes 0025681 Original 2024 commit adapted following rebase to master and resolution of merge conflicts caused by introduction of datetimepicker API." |
Affected Issues 0020040, 0025681 |
|
| mod - plugins/MantisGraph/core/Period.php | Diff File | ||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||