Permalink
Browse files

v0.4.3.5

  • Loading branch information...
1 parent aa56f6d commit db2a89f2c03cd54087be8716397e8ff301ceeb60 @coronin committed Apr 30, 2012
Showing with 13 additions and 5 deletions.
  1. +1 −0 README
  2. +3 −1 background.html
  3. +7 −2 contentscript.js
  4. +1 −1 manifest.json
  5. +1 −1 options.html
  6. BIN v0.4.3.5.zip
View
@@ -34,6 +34,7 @@ One more thing - we have a js client for "the Paper Link", working in all web br
Change Log:
+ * v0.4.3.5 - bug fix
* v0.4.3.4 - handle ws better, handle housekeeping better
* v0.4.3.3 - bug fix
* v0.4.3.2 - web site "save it" will save to Dropbox (if connected)
View
@@ -516,7 +516,9 @@
DEBUG && console.log('>> post pii_link (empty is a success): ' + d);
}
);
+ return;
}
+ chrome.tabs.sendRequest(tabId, {el_id: '_pdf' + pmid, el_link: '#'});
},
'html'
).error(function () {
@@ -654,7 +656,7 @@
}
$(document).ready(function () {
- if (!broadcast_loaded && localStorage.getItem('ws_items') !== 'no') {
+ if (!broadcast_loaded && localStorage.getItem('ws_items') === 'yes') {
load_broadcast();
get_ws_address();
}
View
@@ -315,8 +315,13 @@ chrome.extension.onRequest.addListener(
$(request.el_id).innerText = 'trying';
} else if (request.el_link) {
if (page_url.indexOf('://www.ncbi.nlm.nih.gov/') > 0) {
- $('thepaperlink' + request.el_id).innerText = 'pdf file';
- $('thepaperlink' + request.el_id).href = uneval_trim(request.el_link);
+ var e = $('thepaperlink' + request.el_id);
+ if (request.el_link === '#') {
+ e.parentNode.removeChild(e);
+ } else {
+ e.innerText = 'pdf file';
+ e.href = uneval_trim(request.el_link);
+ }
} else {
$(request.el_id).innerHTML = '&raquo; <a target="_blank" href="'
+ uneval_trim(request.el_link) +'">the file link</a>';
View
@@ -1,6 +1,6 @@
{
"name": "__MSG_appName__",
- "version": "0.4.3.4",
+ "version": "0.4.3.5",
"minimum_chrome_version": "16",
"description": "__MSG_appDesc__",
"default_locale": "en",
View
@@ -156,7 +156,7 @@ <h3 style="color:#9f0000">"the Paper Link" API &ndash; required</h3>
if (localStorage.getItem('contextMenu_shown') === 'no') {
$('#contextMenu_shown').prop('checked', true);
}
- if (localStorage.getItem('ws_items') !== 'no') {
+ if (localStorage.getItem('ws_items') === 'yes') {
$('#ws_items').prop('checked', true);
}
if (localStorage.getItem('ajax_pii_link') !== 'no') {
View
Binary file not shown.

0 comments on commit db2a89f

Please sign in to comment.