Skip to content
Permalink
Browse files

checkbox support

  • Loading branch information...
retorquere committed Apr 7, 2019
1 parent af3c73c commit 9d5feb1bf0c7be5df3329135a2ce8148743b68c7
Showing with 5 additions and 1 deletion.
  1. +5 −1 PubMed Central.js
@@ -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;

0 comments on commit 9d5feb1

Please sign in to comment.
You can’t perform that action at this time.