Scroll to the top when changing section.
This commit is contained in:
parent
eb0cb429fd
commit
e103ae6535
@ -1233,7 +1233,8 @@
|
|||||||
section = $('section', Settings.dialog);
|
section = $('section', Settings.dialog);
|
||||||
section.innerHTML = null;
|
section.innerHTML = null;
|
||||||
section.className = "section-" + (this.title.toLowerCase().replace(/\s+/g, '-'));
|
section.className = "section-" + (this.title.toLowerCase().replace(/\s+/g, '-'));
|
||||||
return this.open(section, g);
|
this.open(section, g);
|
||||||
|
return section.scrollTop = 0;
|
||||||
},
|
},
|
||||||
main: function(section) {
|
main: function(section) {
|
||||||
var ID, arr, checked, description, hiddenNum, key, li, obj, post, thread, ul, _ref, _ref1, _ref2;
|
var ID, arr, checked, description, hiddenNum, key, li, obj, post, thread, ul, _ref, _ref1, _ref2;
|
||||||
|
|||||||
@ -223,6 +223,7 @@ Settings =
|
|||||||
section.innerHTML = null
|
section.innerHTML = null
|
||||||
section.className = "section-#{@title.toLowerCase().replace /\s+/g, '-'}"
|
section.className = "section-#{@title.toLowerCase().replace /\s+/g, '-'}"
|
||||||
@open section, g
|
@open section, g
|
||||||
|
section.scrollTop = 0
|
||||||
|
|
||||||
main: (section) ->
|
main: (section) ->
|
||||||
for key, obj of Config.main
|
for key, obj of Config.main
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user