MantisBT: master 8c18b0ee

Author Committer Branch Timestamp Parent
dhx dhx master 2010-08-07 06:03:16 master 1dbe709e
Affected Issues  0011826: Remove all inline JavaScript from MantisBT (use external scripts instead)
Changeset

Issue 0011826: Replace inline JavaScript datetime picker

The JavaScript date/time picker control was being loaded inline within
the body of the HTML output. An upgraded MantisBT core can now handle
loading or scripts and stylesheets more gracefully using new require_js
and require_css functions. This allows us to remove a bunch of inline
JavaScript thus progressing towards full implementation of
X-Content-Security-Policy.

jQuery is used to search the document on load for any text input fields
with the class "datetime". For each field found, a datetime picker
icon/button is created next to the input box. Users can click this icon
(as they could before) to show the jsCalendar widget (which remains
unchanged).

mod - bug_change_status_page.php Diff File
mod - bug_update_advanced_page.php Diff File
mod - javascript/dev/common.js Diff File
mod - manage_proj_ver_edit_page.php Diff File
mod - bug_report_page.php Diff File
mod - core/date_api.php Diff File