Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
8 (function ($, Modernizr, Drupal) { | 8 (function ($, Modernizr, Drupal) { |
9 function CollapsibleDetails(node) { | 9 function CollapsibleDetails(node) { |
10 this.$node = $(node); | 10 this.$node = $(node); |
11 this.$node.data('details', this); | 11 this.$node.data('details', this); |
12 | 12 |
13 var anchor = location.hash && location.hash !== '#' ? ', ' + location.hash : ''; | 13 var anchor = window.location.hash && window.location.hash !== '#' ? ', ' + window.location.hash : ''; |
14 if (this.$node.find('.error' + anchor).length) { | 14 if (this.$node.find('.error' + anchor).length) { |
15 this.$node.attr('open', true); | 15 this.$node.attr('open', true); |
16 } | 16 } |
17 | 17 |
18 this.setupSummary(); | 18 this.setupSummary(); |