diff options
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()); }, /** |