From: ScottDowne Date: Tue, 11 Jan 2011 17:42:08 +0000 (-0500) Subject: [#246] attribution - if the user did not specify any parameters just pull the text... X-Git-Tag: v0.2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=29c8528f485f05dbeff9deaff1aac928262b1026;p=popcorn-js.git [#246] attribution - if the user did not specify any parameters just pull the text from the tag --- diff --git a/demos/semantic_video/xml/webMadeMovies.xml b/demos/semantic_video/xml/webMadeMovies.xml index cb84299..e687a19 100644 --- a/demos/semantic_video/xml/webMadeMovies.xml +++ b/demos/semantic_video/xml/webMadeMovies.xml @@ -58,11 +58,11 @@ - - - - - + + + + + diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js index 18b3a7e..dd053ca 100644 --- a/plugins/attribution/popcorn.attribution.js +++ b/plugins/attribution/popcorn.attribution.js @@ -80,6 +80,12 @@ if (options.copyrightHolderurl) { attrib += ""; } + + //if the user did not specify any parameters just pull the text from the tag + if ( attrib === "" ) { + attrib = options.text; + } + if (options.license) { if (licenses[options.license.toLowerCase()]) { if (options.licenseUrl) {