projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
misc
/
collapse.js
diff --git
a/web/core/misc/collapse.js
b/web/core/misc/collapse.js
index 2f157bad31e70c8f287d225da44164f6a4a9d4e2..3c09ab18b77e6e29d7a7621180f8fbc3ffaabec8 100644
(file)
--- a/
web/core/misc/collapse.js
+++ b/
web/core/misc/collapse.js
@@
-10,7
+10,7
@@
this.$node = $(node);
this.$node.data('details', this);
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);
}
if (this.$node.find('.error' + anchor).length) {
this.$node.attr('open', true);
}