Skip to content
Permalink
Browse files

PubMed: Fix checkbox support

  • Loading branch information...
dstillman committed Jan 10, 2019
1 parent 21aca1d commit 19d5ca006d5a5fc61ae24de1eb0feedc13841fac
Showing with 5 additions and 4 deletions.
  1. +5 −4 PubMed.js
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 12,
"browserSupport": "gcsibv",
"lastUpdated": "2019-01-07 07:52:09"
"lastUpdated": "2019-01-10 06:30:21"
}

/*
@@ -168,8 +168,9 @@ function getSearchResults(doc, checkOnly) {
if (checkOnly) return true;
found = true;

var checkbox = ZU.xpath(results[i], './/input[@type="checkbox"]')[0];

// Checkbox is a descendant of the containing .rprt div
var checkbox = ZU.xpath(results[i].parentNode, './/input[@type="checkbox"]')[0];

// Keys must be strings. Otherwise, Chrome sorts numerically instead of by insertion order.
items["u"+uid] = {
title: ZU.trimInternal(title),
@@ -1124,4 +1125,4 @@ var testCases = [
]
}
]
/** END TEST CASES **/
/** END TEST CASES **/

0 comments on commit 19d5ca0

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