From ac484c277a0ac0627561d2cac1f4ea47ab5da00b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 18 Feb 2009 13:46:55 +0000 Subject: #125030 by kkaefer, quicksketch, dvessel, Steven, and John Resig: Allow compatibility with other JavaScript libraries. --- modules/node/content_types.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/node') 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); -- cgit v1.2.3