summaryrefslogtreecommitdiff
path: root/modules/system
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/system
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/system')
-rw-r--r--modules/system/system.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/system/system.js b/modules/system/system.js
index 514dfb40a..8a47c3d10 100644
--- a/modules/system/system.js
+++ b/modules/system/system.js
@@ -1,4 +1,5 @@
// $Id$
+(function($) {
/**
* Internal function to check using Ajax if clean URLs can be enabled on the
@@ -80,7 +81,7 @@ Drupal.behaviors.copyFieldValue = {
for (var sourceId in Drupal.settings.copyFieldValue) {
// Get the list of target fields.
targetIds = Drupal.settings.copyFieldValue[sourceId];
- if (!$('#'+ sourceId + '.copy-field-values-processed').size(), context) {
+ if (!$('#'+ sourceId + '.copy-field-values-processed', context).size()) {
// Add the behavior to update target fields on blur of the primary field.
sourceField = $('#' + sourceId);
sourceField.bind('blur', function() {
@@ -131,4 +132,6 @@ Drupal.behaviors.poweredByPreview = {
$('img.powered-by-preview').attr('src', path);
});
}
-}; \ No newline at end of file
+};
+
+})(jQuery); \ No newline at end of file