- Patch #558656 by Davy Van Den Brempt: this that self.
parent
75722e4f19
commit
15a7ec5a4e
|
@ -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.
|
||||
|
|
|
@ -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');
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue