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
8055460c
Commit
8055460c
authored
Jan 03, 2014
by
Nathaniel Catchpole
Browse files
Issue
#2160597
by vijaycs85: Remove drupal_add_js() from simpletest.theme.inc.
parent
a0152d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/simpletest.theme.inc
View file @
8055460c
...
...
@@ -132,7 +132,12 @@ function theme_simpletest_test_table($variables) {
}
// Add js array of settings.
drupal_add_js
(
array
(
'simpleTest'
=>
$js
),
'setting'
);
$attached
=
array
();
$attached
[
'#attached'
][
'js'
][]
=
array
(
'data'
=>
array
(
'simpleTest'
=>
$js
),
'type'
=>
'setting'
,
);
drupal_render
(
$attached
);
if
(
empty
(
$rows
))
{
return
'<strong>'
.
t
(
'No tests to display.'
)
.
'</strong>'
;
...
...
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