Commit cad349a5 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

remove automatic location.hash updates for now

turned out they did more harm than good (as in, leading to confusing history
behaviour)
parent 8fc681c5
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@ $(document).ready(function() {
					$(this).addClass('collapsed-moreinfo');
					// Setting an empty hash causes the browser to scroll back
					// to the top -- we don't want that.
					var posX = window.pageXOffset;
					var posY = window.pageYOffset;
					document.location.hash = '';
					window.scrollTo(posX, posY);
					//var posX = window.pageXOffset;
					//var posY = window.pageYOffset;
					//document.location.hash = '';
					//window.scrollTo(posX, posY);
				}
				else {
					$('.moreinfo').each(function() {
@@ -30,7 +30,7 @@ $(document).ready(function() {
					});
					$(this).removeClass('collapsed-moreinfo');
					$(this).addClass('expanded-moreinfo');
					document.location.hash = $(this).data('train');
					//document.location.hash = $(this).data('train');
				}
			});
		});
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+0 −0

File moved.

+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
	<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }

	% my $av = 'v7'; # asset version
	% my $av = 'v8'; # asset version
	%= stylesheet "/static/${av}/default.css"
	%= stylesheet "/static/${av}/jquery-ui.min.css"
% my $force_mobile = param('force_mobile') // -1;