Skip to content

Fix find.js and section.js#7

Open
austinhuang0131 wants to merge 5 commits into
sachinB94:masterfrom
austinhuang0131:patch-2
Open

Fix find.js and section.js#7
austinhuang0131 wants to merge 5 commits into
sachinB94:masterfrom
austinhuang0131:patch-2

Conversation

@austinhuang0131
Copy link
Copy Markdown

Title still doesn't work, however But at least I fixed it from "completely useless" to "somehow useful".

Comment thread lib/find.js
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();
Copy link
Copy Markdown
Author

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

Comment thread lib/find.js
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() {
Copy link
Copy Markdown
Author

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

@austinhuang0131 austinhuang0131 changed the title Fix .find() function Fix find.js and section.js Nov 24, 2017
Comment thread 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');
Copy link
Copy Markdown
Author

@austinhuang0131 austinhuang0131 Nov 24, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant