-
Notifications
You must be signed in to change notification settings - Fork 9
Fix find.js and section.js #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| commentCount: null | ||
| }; | ||
| item.title = $(this).children('.info').children('h3').text().trim(); | ||
| item.title = $(this).children('header').children('a').children('h1.badge-item-title').text().trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Title still doesn't work unfortunately
| result.query = query; | ||
| result.sectionHeader = $('div.section-header h3').text(); | ||
| result.result = $('ul.overview-list.badge-entry-collection > li').map(function() { | ||
| result.result = $('div.badge-entry-collection > article').map(function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically copied whatever used in section.js to here
lib/section.js
Outdated
| }; | ||
| item.title = $(this).children('header').children('h2.badge-item-title').children('a').text().trim(); | ||
| item.id = $(this).attr('data-entry-id'); | ||
| item.url = $(this).attr('data-entry-url'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more convenient way to get URL
Title still doesn't work, however But at least I fixed it from "completely useless" to "somehow useful".