From 13da5e0445da1b27a932b7c26725d42ecc5677f2 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Fri, 25 Nov 2011 20:18:10 +0100 Subject: [PATCH] [#725] Add compatibility check for jQuery availability In the current master a.k.a. ChiliProject 2.x, there is no jQuery loaded by core. --- lib/chili_project/compatibility.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/chili_project/compatibility.rb b/lib/chili_project/compatibility.rb index d690792c..e369e63b 100644 --- a/lib/chili_project/compatibility.rb +++ b/lib/chili_project/compatibility.rb @@ -21,5 +21,14 @@ module ChiliProject Journal.included_modules.include?(Redmine::Acts::Journalized) end + # Is any jQuery version available on all pages? + # + # This does not take modifications into account, that may be performed by + # plugins. + # + # Released: ChiliProject 2.5.0 + def self.using_jquery? + false + end end end