Issue #1936708 by bnjmnm, espurnes, bendev, nod_, justinchev, ayushmishra206, vsujeetkumar, mbroere, mrinalini9, Knee-X, vacho, priyanka.sahni, jaspreetsingh31, paulocs, sokru, joum, kwoxer, yoroy, lauriii, rootwork, droplet: Current element values missing from vertical tabs when shown in 2-column layout
2020-09-18 14:42:57 +00:00
|
|
|
/**
|
|
|
|
* DO NOT EDIT THIS FILE.
|
|
|
|
* See the following change record for more information,
|
|
|
|
* https://www.drupal.org/node/2815083
|
|
|
|
* @preserve
|
|
|
|
**/
|
|
|
|
|
|
|
|
(function ($, Drupal) {
|
|
|
|
function DetailsSummarizedContent(node) {
|
|
|
|
this.$node = $(node);
|
|
|
|
this.setupSummary();
|
|
|
|
}
|
|
|
|
|
|
|
|
$.extend(DetailsSummarizedContent, {
|
|
|
|
instances: []
|
|
|
|
});
|
|
|
|
$.extend(DetailsSummarizedContent.prototype, {
|
|
|
|
setupSummary: function setupSummary() {
|
|
|
|
this.$detailsSummarizedContentWrapper = $(Drupal.theme('detailsSummarizedContentWrapper'));
|
|
|
|
this.$node.on('summaryUpdated', $.proxy(this.onSummaryUpdated, this)).trigger('summaryUpdated').find('> summary').append(this.$detailsSummarizedContentWrapper);
|
|
|
|
},
|
|
|
|
onSummaryUpdated: function onSummaryUpdated() {
|
2021-10-12 19:17:13 +00:00
|
|
|
var text = this.$node.drupalGetSummary();
|
Issue #1936708 by bnjmnm, espurnes, bendev, nod_, justinchev, ayushmishra206, vsujeetkumar, mbroere, mrinalini9, Knee-X, vacho, priyanka.sahni, jaspreetsingh31, paulocs, sokru, joum, kwoxer, yoroy, lauriii, rootwork, droplet: Current element values missing from vertical tabs when shown in 2-column layout
2020-09-18 14:42:57 +00:00
|
|
|
this.$detailsSummarizedContentWrapper.html(Drupal.theme('detailsSummarizedContentText', text));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
Drupal.behaviors.detailsSummary = {
|
|
|
|
attach: function attach(context) {
|
2021-08-10 10:05:02 +00:00
|
|
|
DetailsSummarizedContent.instances = DetailsSummarizedContent.instances.concat(once('details', 'details', context).map(function (details) {
|
Issue #1936708 by bnjmnm, espurnes, bendev, nod_, justinchev, ayushmishra206, vsujeetkumar, mbroere, mrinalini9, Knee-X, vacho, priyanka.sahni, jaspreetsingh31, paulocs, sokru, joum, kwoxer, yoroy, lauriii, rootwork, droplet: Current element values missing from vertical tabs when shown in 2-column layout
2020-09-18 14:42:57 +00:00
|
|
|
return new DetailsSummarizedContent(details);
|
2021-08-10 10:05:02 +00:00
|
|
|
}));
|
Issue #1936708 by bnjmnm, espurnes, bendev, nod_, justinchev, ayushmishra206, vsujeetkumar, mbroere, mrinalini9, Knee-X, vacho, priyanka.sahni, jaspreetsingh31, paulocs, sokru, joum, kwoxer, yoroy, lauriii, rootwork, droplet: Current element values missing from vertical tabs when shown in 2-column layout
2020-09-18 14:42:57 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
Drupal.DetailsSummarizedContent = DetailsSummarizedContent;
|
|
|
|
|
|
|
|
Drupal.theme.detailsSummarizedContentWrapper = function () {
|
|
|
|
return "<span class=\"summary\"></span>";
|
|
|
|
};
|
|
|
|
|
|
|
|
Drupal.theme.detailsSummarizedContentText = function (text) {
|
|
|
|
return text ? " (".concat(text, ")") : '';
|
|
|
|
};
|
|
|
|
})(jQuery, Drupal);
|