Skip to content
Snippets Groups Projects
Commit 15a7ec5a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 75722e4f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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');
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment