summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index fc83907fa..c82d7a77f 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -21,6 +21,20 @@ function system_requirements($phase) {
'value' => VERSION,
'severity' => REQUIREMENT_INFO
);
+
+ drupal_add_js("
+ $(document).ready(function() {
+ $('.system-jquery').ancestors('.warning').addClass('info').removeClass('warning')
+ var version = $().jquery
+ $('.system-jquery').html(version.substring(1,version.length-1))
+ });
+ ", 'inline');
+
+ $requirements['jquery'] = array(
+ 'title' => $t('jQuery'),
+ 'value' => '<span class="system-jquery">'. $t('Javascript is not currently enabled.') .'</span>',
+ 'severity' => REQUIREMENT_WARNING
+ );
}
// Test web server