Mercurial > hg > isophonics-drupal-site
diff core/misc/collapse.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/misc/collapse.js Tue Jul 10 15:07:59 2018 +0100 +++ b/core/misc/collapse.js Thu Feb 28 13:21:36 2019 +0000 @@ -10,7 +10,7 @@ this.$node = $(node); this.$node.data('details', this); - var anchor = location.hash && location.hash !== '#' ? ', ' + location.hash : ''; + var anchor = window.location.hash && window.location.hash !== '#' ? ', ' + window.location.hash : ''; if (this.$node.find('.error' + anchor).length) { this.$node.attr('open', true); }