]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#250] fixed target as per PR
authorAnna Sobiepanek <annaopensource@gmail.com>
Mon, 10 Jan 2011 21:42:51 +0000 (16:42 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Mon, 10 Jan 2011 21:42:51 +0000 (16:42 -0500)
plugins/attribution/popcorn.attribution.html
plugins/attribution/popcorn.attribution.js

index 7e853b6ad0949c0ca27cec4e360d10a66ff14bbf..719be124b209f5cc672c8d1f31467ae24edfd7eb 100644 (file)
@@ -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'
       } )
index 30c7efda89743f04c83b9b296c1abd27b744b258..ba9c023e4538fc060f48084f60b4b69d3c3043c9 100644 (file)
@@ -98,9 +98,8 @@
           attrib += ", <a href='" + options.licenseUrl + "' target='_blank'>license</a> ";
         }
         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 );
         }
       },
       /**