-$(document).ready(function () {
+$(function () {
// Preserve location hash in referer
- if (window.location.hash) {
- $("#referer").val($("#referer").val() + window.location.hash);
+ if (location.hash) {
+ $("#referer").val($("#referer").val() + location.hash);
}
});