From 08f8d4873df70c18715b8fa8b453fd0335019903 Mon Sep 17 00:00:00 2001 From: Mark MacGillivray Date: Sun, 23 Oct 2016 11:59:31 +0100 Subject: [PATCH] changing button wording --- js/main.js | 3 +++ manifest.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 4075f6c..8bd194f 100644 --- a/js/main.js +++ b/js/main.js @@ -20,6 +20,9 @@ function handleAvailabilityResponse(response) { document.getElementById('icon'+response.data.availability[i].type).setAttribute('alt',title); document.getElementById('icon'+response.data.availability[i].type).setAttribute('title',title); document.getElementById('icon'+response.data.availability[i].type).setAttribute('href',response.data.availability[i].url); + var nd = document.getElementById('icon'+response.data.availability[i].type).innerHTML; + nd = nd.replace('Open','Get'); + document.getElementById('icon'+response.data.availability[i].type).innerHTML = nd; } } else if (response.data.requests.length > 0) { for (var requests_entry of response.data.requests) { diff --git a/manifest.json b/manifest.json index d5a558e..036ecf6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Open Access Button", - "version": "0.1.1", - "version_name": "oab_unified_0.1.1", + "version": "0.1.2", + "version_name": "oab_unified_0.1.2", "manifest_version": 2, "description": "Push Button. Get Research. Make Progress.", "icons": {