Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6b3775c9
Commit
6b3775c9
authored
Sep 08, 2006
by
Neil Drumm
Browse files
#82831
by gopherspidey. Show JavaScript information in status report page.
parent
9ce45873
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.install
View file @
6b3775c9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment