diff --git a/admin/check/check_display_inc.php b/admin/check/check_display_inc.php index 7ce5812b7c..997d6eb21a 100644 --- a/admin/check/check_display_inc.php +++ b/admin/check/check_display_inc.php @@ -36,11 +36,6 @@ check_print_section_header_row( 'Display' ); -check_print_test_row( - 'use_dynamic_filters = ON requires use_javascript = ON', - !config_get_global( 'use_dynamic_filters' ) || ( config_get_global( 'use_dynamic_filters' ) && config_get_global( 'use_javascript' ) ) -); - check_print_test_row( 'bug_link_tag is not blank/null', config_get_global( 'bug_link_tag' ), diff --git a/bug_report_page.php b/bug_report_page.php index eb529fcd99..00e5e5d990 100644 --- a/bug_report_page.php +++ b/bug_report_page.php @@ -362,13 +362,9 @@ - - - + + - - - -
@@ -422,11 +418,9 @@ ?>
- diff --git a/bugnote_add_inc.php b/bugnote_add_inc.php index e41d789aa0..8574dc8988 100644 --- a/bugnote_add_inc.php +++ b/bugnote_add_inc.php @@ -114,7 +114,7 @@ - + diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 6bd3365aea..2f530d1e19 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -3282,16 +3282,6 @@ */ $g_custom_field_type_enum_string = '0:string,1:numeric,2:float,3:enum,4:email,5:checkbox,6:list,7:multiselection list,8:date,9:radio,10:textarea'; -################################# -# MantisBT Javascript Variables # -################################# - -/** - * allow the use of Javascript? - * @global int $g_use_javascript - */ -$g_use_javascript = ON; - ############################### # MantisBT Speed Optimisation # ############################### @@ -4177,7 +4167,7 @@ 'hostname','html_valid_tags', 'html_valid_tags_single_line', 'default_language', 'language_auto_map', 'fallback_language', 'login_method', 'plugins_enabled', 'session_handler', 'session_save_path', 'session_validation', 'show_detailed_errors', 'show_queries_count', - 'stop_on_errors', 'use_javascript', 'version_suffix', + 'stop_on_errors', 'version_suffix', 'fileinfo_magic_db_file', 'css_include_file', 'css_rtl_include_file', 'meta_include_file', 'file_type_icons', 'path', 'icon_path', 'short_path', 'absolute_path', 'core_path', 'class_path','library_path', 'language_path', 'absolute_path_default_upload_folder', diff --git a/core/collapse_api.php b/core/collapse_api.php index 9338bd2d0d..3fe7b0d59d 100644 --- a/core/collapse_api.php +++ b/core/collapse_api.php @@ -122,10 +122,6 @@ function collapse_closed( $p_name, $p_section = '' ) { * @return void */ function collapse_icon( $p_name, $p_section = '' ) { - if( OFF == config_get( 'use_javascript' ) ) { - return; - } - global $g_open_collapse_section; if( $g_open_collapse_section === true ) { @@ -164,11 +160,7 @@ function collapse_end( $p_name, $p_section = '' ) { $g_open_collapse_section = false; - if( ON == config_get( 'use_javascript' ) ) { - ob_end_flush(); - } else { - ob_end_clean(); - } + ob_end_flush(); $g_current_collapse_section = null; } @@ -181,7 +173,7 @@ function collapse_end( $p_name, $p_section = '' ) { function collapse_display( $p_block ) { global $g_collapse_cache_token; - if( !isset( $g_collapse_cache_token[$p_block] ) || OFF == config_get( 'use_javascript' ) ) { + if( !isset( $g_collapse_cache_token[$p_block] ) ) { return true; } diff --git a/core/filter_api.php b/core/filter_api.php index 616490c3a8..dafc7ef476 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -2203,7 +2203,7 @@ function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e ); } - $t_dynamic_filter_expander_class = ( config_get( 'use_javascript' ) && config_get( 'use_dynamic_filters' ) ) ? ' class="dynamic-filter-expander"' : ''; + $t_dynamic_filter_expander_class = ( config_get( 'use_dynamic_filters' ) ) ? ' class="dynamic-filter-expander"' : ''; ?> > @@ -3459,7 +3459,7 @@ function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e