diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-09 12:24:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-09 12:24:53 +0000 |
commit | 459d623467a23d8deda42620eb9be7992d5cfd24 (patch) | |
tree | d4807ff4cfccd52634e7c0785649e1eae52708cd /misc | |
parent | 70d60fb88fb90a84fa06de5dff97c16dc3b43956 (diff) | |
download | brdo-459d623467a23d8deda42620eb9be7992d5cfd24.tar.gz brdo-459d623467a23d8deda42620eb9be7992d5cfd24.tar.bz2 |
- Patch #445130 by Rob Loach, aspilicious: namespace the Drupal jQuery functions.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/collapse.js | 2 | ||||
-rw-r--r-- | misc/form.js | 4 | ||||
-rw-r--r-- | misc/vertical-tabs.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/misc/collapse.js b/misc/collapse.js index 829218e4f..eaae23fd3 100644 --- a/misc/collapse.js +++ b/misc/collapse.js @@ -66,7 +66,7 @@ Drupal.behaviors.collapse = { var summary = $('<span class="summary"></span>'); $fieldset. bind('summaryUpdated', function () { - var text = $.trim($fieldset.getSummary()); + var text = $.trim($fieldset.drupalGetSummary()); summary.html(text ? ' (' + text + ')' : ''); }) .trigger('summaryUpdated'); diff --git a/misc/form.js b/misc/form.js index 0aa379fee..919037729 100644 --- a/misc/form.js +++ b/misc/form.js @@ -4,7 +4,7 @@ /** * Retrieves the summary for the first element. */ -$.fn.getSummary = function () { +$.fn.drupalGetSummary = function () { var callback = this.data('summaryCallback'); return (this[0] && callback) ? $.trim(callback(this[0])) : ''; }; @@ -16,7 +16,7 @@ $.fn.getSummary = function () { * Either a function that will be called each time the summary is * retrieved or a string (which is returned each time). */ -$.fn.setSummary = function (callback) { +$.fn.drupalSetSummary = function (callback) { var self = this; // To facilitate things, the callback should always be a function. If it's diff --git a/misc/vertical-tabs.js b/misc/vertical-tabs.js index 0dbcfc293..3aab4f019 100644 --- a/misc/vertical-tabs.js +++ b/misc/vertical-tabs.js @@ -129,7 +129,7 @@ Drupal.verticalTab.prototype = { * Updates the tab's summary. */ updateSummary: function () { - this.summary.html(this.fieldset.getSummary()); + this.summary.html(this.fieldset.drupalGetSummary()); }, /** |