diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-08 23:25:25 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-08 23:25:25 +0000 |
commit | 6b3775c90d5ac571adb6e561e14f8f2ef5f1afc5 (patch) | |
tree | aacdc17b0a658729b89b9d87bbe681a6aeb1a43a | |
parent | 9ce45873a1997f48f4de8f2a4e5719449312873a (diff) | |
download | brdo-6b3775c90d5ac571adb6e561e14f8f2ef5f1afc5.tar.gz brdo-6b3775c90d5ac571adb6e561e14f8f2ef5f1afc5.tar.bz2 |
#82831 by gopherspidey. Show JavaScript information in status report page.
-rw-r--r-- | modules/system/system.install | 14 |
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 |