From 6b3775c90d5ac571adb6e561e14f8f2ef5f1afc5 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 8 Sep 2006 23:25:25 +0000 Subject: #82831 by gopherspidey. Show JavaScript information in status report page. --- modules/system/system.install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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' => ''. $t('Javascript is not currently enabled.') .'', + 'severity' => REQUIREMENT_WARNING + ); } // Test web server -- cgit v1.2.3