Sha256: e9452c0f69b5799497a2324528d3aa783bcd246f61c31946206156d2f478bb69
Contents?: true
Size: 794 Bytes
Versions: 210
Compression:
Stored size: 794 Bytes
Contents
window.GOVUK = window.GOVUK || {} window.GOVUK.Modules = window.GOVUK.Modules || {}; (function (Modules) { function Metadata ($module) { this.$module = $module } Metadata.prototype.init = function () { var seeAllUpdates = this.$module.querySelector('.js-see-all-updates-link') if (seeAllUpdates) { var target = document.querySelector(seeAllUpdates.getAttribute('href')) if (target) { seeAllUpdates.addEventListener('click', function () { var targetToggleTrigger = target.querySelector('[aria-expanded]') if (targetToggleTrigger && targetToggleTrigger.getAttribute('aria-expanded') !== 'true') { targetToggleTrigger.click() } }) } } } Modules.Metadata = Metadata })(window.GOVUK.Modules)
Version data entries
210 entries across 210 versions & 1 rubygems