diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2db6ce7ee..fe250f7f3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1790,12 +1790,12 @@ module ApplicationHelper tags = javascript_include_tag( 'jquery-3.7.1-ui-1.13.3', 'rails-ujs', - 'tribute-5.1.3.min', - 'tablesort-5.2.1.min.js', - 'tablesort-5.2.1.number.min.js', - 'application', - 'responsive' + 'tribute-5.1.3.min' ) + if Setting.wiki_tablesort_enabled? + tags << javascript_include_tag('tablesort-5.2.1.min.js', 'tablesort-5.2.1.number.min.js') + end + tags << javascript_include_tag('application', 'responsive') unless User.current.pref.warn_on_leaving_unsaved == '0' warn_text = escape_javascript(l(:text_warn_on_leaving_unsaved)) tags << |