summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-10 05:23:01 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-10 05:23:01 +0000
commit0762f6007378a79d53951baf79cf8a5fac7a7489 (patch)
tree091cbb8ca9fb02e0f8c1eae7cc42dfc005b7eb3f /modules/simpletest/simpletest.module
parent9020a9a20130ac2712f2a7406ee34ed9c39064d1 (diff)
downloadbrdo-0762f6007378a79d53951baf79cf8a5fac7a7489.tar.gz
brdo-0762f6007378a79d53951baf79cf8a5fac7a7489.tar.bz2
#315798 by Rob Loach, mfer, Grugnog2, and sun: Add weighting to drupal_add_js().
Diffstat (limited to 'modules/simpletest/simpletest.module')
-rw-r--r--modules/simpletest/simpletest.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module
index 5275afb67..71225ff5c 100644
--- a/modules/simpletest/simpletest.module
+++ b/modules/simpletest/simpletest.module
@@ -210,7 +210,10 @@ function simpletest_test_form() {
function theme_simpletest_test_table($table) {
drupal_add_css(drupal_get_path('module', 'simpletest') . '/simpletest.css');
- drupal_add_js(drupal_get_path('module', 'simpletest') . '/simpletest.js', 'module');
+
+ // Since SimpleTest is a special use case for the table select, stick the
+ // SimpleTest JavaScript above the table select.
+ drupal_add_js(drupal_get_path('module', 'simpletest') . '/simpletest.js', array('weight' => JS_DEFAULT - 1));
// Create header for test selection table.
$header = array(