Is there an event that targets dropzone?

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
rhinobomb
Posts: 1
Joined: 03 Dec 2019, 20:15

Is there an event that targets dropzone?

Post by rhinobomb »

Is there an event that fires whenever dropzone is displayed? The hooks I've been using do run when dropzone is there but they also run on some pages that don't have dropzone. I get some javascript errors but that is the extent of it so it's not a showstopper but I would like to clean it up.
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: Is there an event that targets dropzone?

Post by Starbuck »

What about checking for the presence of window.dropzone?
Or look for other markers that indicate a dropzone target is on the page?
https://www.dropzonejs.com/
If you want Mantis to work differently, use or create a plugin. Visit the Plugins forums.
Ask developers to create a plugin that you need - and motivate them to help you!
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Is there an event that targets dropzone?

Post by cas »

The below pages have a direct reference to a dropzone (other than defining and/or enabling). The last 2 scripts are included quite a lot so you would need to verify which functions with "dropzone" from those 2 are referenced in all the scripts (tedious job) :mrgreen:
bug_report_page.php
bugnote_add_inc.php
core/html_api.php
core/print_api.php
Post Reply