summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-07-04 18:26:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-07-04 18:26:42 +0000
commit4a4a6570d8b84f7b58e1f6e27ffc16ee9f9f1789 (patch)
tree2e70b7d5c5ee90e3c732939e5f99e18466b9637d /includes/form.inc
parenta0d19b08104768d09274e644d8e0f439316714b0 (diff)
downloadbrdo-4a4a6570d8b84f7b58e1f6e27ffc16ee9f9f1789.tar.gz
brdo-4a4a6570d8b84f7b58e1f6e27ffc16ee9f9f1789.tar.bz2
#315100 by Rob Loach, quicksketch, sun, skilip, aaron, et al: Add ability for modules to register JS/CSS libraries.
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 8df13ab5a..18837c6cc 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -2002,7 +2002,7 @@ function form_process_ahah($element) {
// Adding the same javascript settings twice will cause a recursion error,
// we avoid the problem by checking if the javascript has already been added.
if ((isset($element['#ahah']['callback']) || isset($element['#ahah']['path'])) && isset($element['#ahah']['event']) && !isset($js_added[$element['#id']])) {
- drupal_add_js('misc/jquery.form.js', array('weight' => JS_LIBRARY));
+ drupal_add_library('system', 'form');
drupal_add_js('misc/ahah.js');
$ahah_binding = array(