X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmisc%2Fcollapse.js;h=3c09ab18b77e6e29d7a7621180f8fbc3ffaabec8;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=2f157bad31e70c8f287d225da44164f6a4a9d4e2;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/misc/collapse.js b/web/core/misc/collapse.js index 2f157bad3..3c09ab18b 100644 --- a/web/core/misc/collapse.js +++ b/web/core/misc/collapse.js @@ -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); }