Skip to content

Commit 05811af

Browse files
committed
teeny
1 parent e9adfd6 commit 05811af

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,12 @@ function setToggleOptions(dat) {
9898

9999

100100
function enterDisplayMode() {
101-
// also scroll to top to make the UI more usable on smaller monitors
102-
$(document).scrollTop(0);
103-
101+
$(document).scrollTop(0); // scroll to top to make UX better on small monitors
104102
$.bbq.pushState({ mode: 'display' }, 2 /* completely override other hash strings to keep URL clean */);
105103
}
106104

107105
function enterEditMode() {
106+
$(document).scrollTop(0); // scroll to top to make UX better on small monitors
108107
$.bbq.pushState({ mode: 'edit' }, 2 /* completely override other hash strings to keep URL clean */);
109108
}
110109

0 commit comments

Comments
 (0)