Commit 8055460c authored by catch's avatar catch

Issue #2160597 by vijaycs85: Remove drupal_add_js() from simpletest.theme.inc.

parent a0152d5c
......@@ -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>';
......
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