Mercurial > hg > isophonics-drupal-site
diff core/themes/seven/js/responsive-details.js @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/themes/seven/js/responsive-details.js Tue Jul 10 15:07:59 2018 +0100 +++ b/core/themes/seven/js/responsive-details.js Thu Feb 28 13:21:36 2019 +0000 @@ -14,6 +14,8 @@ return; } + var $summaries = $details.find('> summary'); + function detailsToggle(matches) { if (matches) { $details.attr('open', true); @@ -31,7 +33,6 @@ detailsToggle(event.matches); } - var $summaries = $details.find('> summary'); var mql = window.matchMedia('(min-width:48em)'); mql.addListener(handleDetailsMQ); detailsToggle(mql.matches);