View Issue Details

IDProjectCategoryView StatusLast Update
0012631mantisbtjavascriptpublic2014-12-08 00:33
Reporterdhx Assigned Todhx  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version1.2.15 
Target Version1.3.0-beta.1Fixed in Version1.3.0-beta.1 
Summary0012631: Replace old inline dynamic filter code with jQuery equivalent
Description

MantisBT is currently using an antiquated method for handling dynamic filters. This method makes use of a whole lot of custom JavaScript code that is likely not very robust and cross-browser-compatible. The current method also makes heavy use of inline JavaScript which blocks our progress towards removing all inline JavaScript from our HTML output as per bug 0011826.

Instead of using this old method we should instead use a modern jQuery AJAX equivalent that will be much simpler and require far less code. It is also very easy to get jQuery AJAX working entirely from within external JavaScript files.

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 
has duplicate 0009793 closeddhx ActiveXObject emulation hack should be removed 
child of 0011826 closeddhx Remove all inline JavaScript from MantisBT (use external scripts instead) 

Activities

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036399

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 7790835c

2010-12-25 21:26

dhx


Details Diff
Issue 0012631: Replace old dynamic filter JavaScript code with jQuery

MantisBT was using a very old and messy method for handling dynamic
filters with client side JavaScript. This involved a lot of inline
JavaScript throughout the HTML output which is blocking our progress
towards bug 0011826 - completely removing all inline JavaScript from the
HTML output.

This patch removes the old dynamic filter JavaScript approach and
replaces it with a smaller, faster, more reliable and easier to maintain
jQuery equivalent.
Affected Issues
0011826, 0012631
rm - javascript/dev/addLoadEvent.js Diff
mod - core/helper_api.php Diff File
mod - javascript/common.js Diff File
mod - docbook/Admin_Guide/en-US/Configuration.xml Diff File
rm - javascript/dynamic_filters.js Diff
mod - core/filter_api.php Diff File
mod - view_all_bug_page.php Diff File
mod - core/obsolete.php Diff File
rm - javascript/dev/dynamic_filters.js Diff
mod - core/print_api.php Diff File
mod - return_dynamic_filters.php Diff File
mod - lang/strings_english.txt Diff File
mod - admin/check/check_display_inc.php Diff File
rm - javascript/dev/xmlhttprequest.js Diff
rm - javascript/xmlhttprequest.js Diff
rm - javascript/addLoadEvent.js Diff
mod - view_filters_page.php Diff File
mod - config_defaults_inc.php Diff File