From 9bb67bb082b6b3884ac9d3bf27351012e63afc02 Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Mon, 10 Jan 2011 16:42:51 -0500 Subject: [PATCH] [#250] fixed target as per PR --- plugins/attribution/popcorn.attribution.html | 4 ++-- plugins/attribution/popcorn.attribution.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/attribution/popcorn.attribution.html b/plugins/attribution/popcorn.attribution.html index 7e853b6..719be12 100644 --- a/plugins/attribution/popcorn.attribution.html +++ b/plugins/attribution/popcorn.attribution.html @@ -15,7 +15,7 @@ end: 10, // seconds nameOfWork: "A Shared Culture", copyrightHolder:"Jesse Dylan", - licenseType: "CC-BY-N6", + license: "CC-BY-N6", licenseUrl: "http://creativecommons.org/licenses/by-nc/2.0/", target: 'attribdiv' } ) @@ -25,7 +25,7 @@ nameOfWork: "Internet", nameOfWorkUrl:"http://www.archive.org/details/CC1232_internet", copyrightHolder:"The Computer Chronicles", - licenseType:"CC-BY-NC-ND", + license:"CC-BY-NC-ND", licenseUrl: "http://creativecommons.org/licenses/by-nc-nd/2.0/", target: 'attribdiv' } ) diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js index 30c7efd..ba9c023 100644 --- a/plugins/attribution/popcorn.attribution.js +++ b/plugins/attribution/popcorn.attribution.js @@ -98,9 +98,8 @@ attrib += ", license "; } options._container.innerHTML = attrib; - options.target = document.getElementById( options.target ); - if (options.target) { - options.target.appendChild( options._container ); + if ( document.getElementById( options.target ) ) { + document.getElementById( options.target ).appendChild( options._container ); } }, /** -- 2.43.0