mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 06:18:08 -05:00
policy pages: Handle periods in heading ids.
This commit is contained in:
@@ -69,7 +69,8 @@ r.ui.TOCScroller = Backbone.View.extend({
|
||||
},
|
||||
|
||||
_tocFor: function($heading) {
|
||||
return this.$toc.find('.' + $heading.attr('id')).children('a')
|
||||
// heading ids can have periods in them, so we'll use getElementsByClassName :(
|
||||
return $(this.$toc[0].getElementsByClassName($heading.attr('id'))).children('a')
|
||||
},
|
||||
|
||||
_updateProgress: function() {
|
||||
|
||||
Reference in New Issue
Block a user