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

Do not scroll back to top when closing a detail popup

parent 70d838bb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -14,7 +14,12 @@ $(document).ready(function() {
				if ($(this).hasClass('expanded-moreinfo')) {
					$(this).removeClass('expanded-moreinfo');
					$(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);
				}
				else {
					$('.moreinfo').each(function() {
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+0 −0

File moved.

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

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