summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-18 13:46:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-18 13:46:55 +0000
commitac484c277a0ac0627561d2cac1f4ea47ab5da00b (patch)
treeeac82650ab4c17d3f62461127403e2aff344cd82 /modules/node
parentb6025a8820ffc84fccbde3a8f77ba6f9c183bfc4 (diff)
downloadbrdo-ac484c277a0ac0627561d2cac1f4ea47ab5da00b.tar.gz
brdo-ac484c277a0ac0627561d2cac1f4ea47ab5da00b.tar.bz2
#125030 by kkaefer, quicksketch, dvessel, Steven, and John Resig: Allow compatibility with other JavaScript libraries.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/node/content_types.js b/modules/node/content_types.js
index 61ff33493..7f6ff3a2d 100644
--- a/modules/node/content_types.js
+++ b/modules/node/content_types.js
@@ -1,3 +1,6 @@
+// $Id$
+(function($) {
+
Drupal.behaviors.contentTypes = {
attach: function() {
if ($('#edit-type').val() == $('#edit-name').val().toLowerCase().replace(/[^a-z0-9]+/g, '_').replace(/_+/g, '_') || $('#edit-type').val() == '') {
@@ -22,3 +25,5 @@ Drupal.behaviors.contentTypes = {
}
}
};
+
+})(jQuery);