MantisBT: master ada95002

Author Committer Branch Timestamp Parent
raspopov dregad master 2026-03-12 11:32 master d5331af6
Affected Issues  0036967: Restricting Dropzone loading by pages that use it.
Changeset

Restrict Dropzone loading to pages using it

A new DropzoneAPI (dropzone_api.php) has been added that contains HTML
output functions for dropzone elements transferred from the PrintAPI.
The old functions have been retained and marked as obsolete.

The common code from the pages has been merged and moved to
the DropzoneAPI as the dropzone_print() function.

The JavaScript code related to Dropzone has been separated into a file
called dropzone-proxy.js and slightly unified.

Fixes 0036967

Signed-off-by: Damien Regad dregad@mantisbt.org

Rebased and squashed commits

mod - bug_report_page.php Diff File
mod - bug_view_inc.php Diff File
mod - bugnote_add_inc.php Diff File
add - core/dropzone_api.php Diff File
mod - core/html_api.php Diff File
mod - core/print_api.php Diff File
mod - js/common.js Diff File
add - js/dropzone-proxy.js Diff File