Commit 6b3775c9 authored by drumm's avatar drumm
Browse files

#82831 by gopherspidey. Show JavaScript information in status report page.

parent 9ce45873
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment