- Patch #558656 by Davy Van Den Brempt: this that self.

merge-requests/26/head
Dries Buytaert 2009-08-25 13:30:54 +00:00
parent 75722e4f19
commit 15a7ec5a4e
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ $.fn.getSummary = function () {
* retrieved or a string (which is returned each time).
*/
$.fn.setSummary = function (callback) {
var that = this;
var self = this;
// To facilitate things, the callback should always be a function. If it's
// not, we wrap it into an anonymous function which just returns the value.
@ -32,7 +32,7 @@ $.fn.setSummary = function (callback) {
// (re-)added.
.unbind('formUpdated.summary')
.bind('formUpdated.summary', function () {
that.trigger('summaryUpdated');
self.trigger('summaryUpdated');
})
// The actual summaryUpdated handler doesn't fire when the callback is
// changed, so we have to do this manually.

View File

@ -55,17 +55,17 @@ Drupal.behaviors.verticalTabs = {
* - fieldset: The jQuery object of the fieldset that is the tab pane.
*/
Drupal.verticalTab = function (settings) {
var that = this;
var self = this;
$.extend(this, settings, Drupal.theme('verticalTab', settings));
this.link.click(function () {
that.focus();
self.focus();
return false;
});
this.fieldset
.bind('summaryUpdated', function () {
that.updateSummary();
self.updateSummary();
})
.trigger('summaryUpdated');
};