Skip to content

Commit

Permalink
checkbox support
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Apr 7, 2019
1 parent af3c73c commit 9d5feb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PubMed Central.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ function getSearchResults(doc, checkOnly) {
var title = ZU.xpathText(article, './/div[@class="title"]');
var pdf = getPDF(article, './/div[@class="links"]/a'
+ '[@class="view" and contains(@href,".pdf")][1]');
ids[pmcid[1]] = title;
const cb = article.querySelector('input[type=checkbox]');
ids[pmcid[1]] = {
title,
checked: cb && cb.checked,
};

found = true;

Expand Down

0 comments on commit 9d5feb1

Please sign in to comment.