From: ScottDowne Date: Fri, 10 Jun 2011 21:13:03 +0000 (-0400) Subject: [#568] stable target names in manifest X-Git-Tag: v0.7^2~44^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7d635d2666273b6b58f0562990eb2e9b4887ef46;p=popcorn-js.git [#568] stable target names in manifest --- diff --git a/plugins/flickr/popcorn.flickr.js b/plugins/flickr/popcorn.flickr.js index 1009fea..8b7a939 100644 --- a/plugins/flickr/popcorn.flickr.js +++ b/plugins/flickr/popcorn.flickr.js @@ -159,7 +159,7 @@ tags : {elem:'input', type:'text', label:'Tags'}, username : {elem:'input', type:'text', label:'Username'}, apikey : {elem:'input', type:'text', label:'Api_key'}, - target : 'Flickr-container', + target : 'flickr-container', height : {elem:'input', type:'text', label:'Height'}, width : {elem:'input', type:'text', label:'Width'}, padding : {elem:'input', type:'text', label:'Padding'}, diff --git a/plugins/image/popcorn.image.js b/plugins/image/popcorn.image.js index b26d026..dc5f90d 100644 --- a/plugins/image/popcorn.image.js +++ b/plugins/image/popcorn.image.js @@ -52,7 +52,7 @@ type: "text", label: "Link URL" }, - target: "Image-container", + target: "image-container", src: { elem: "input", type: "text", diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index f56d986..0759d78 100644 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -120,7 +120,7 @@ options:{ start : {elem:'input', type:'text', label:'In'}, end : {elem:'input', type:'text', label:'Out'}, - target : 'Subtitle-container', + target : 'subtitle-container', text : {elem:'input', type:'text', label:'Text'} } }, @@ -128,11 +128,11 @@ _setup: function( options ) { // Creates a div for all subtitles to use - ( !this.container && !options.target || options.target === 'Subtitle-container' ) && + ( !this.container && !options.target || options.target === 'subtitle-container' ) && createDefaultContainer( this ); // if a target is specified, use that - if ( options.target && options.target !== 'Subtitle-container' ) { + if ( options.target && options.target !== 'subtitle-container' ) { options.container = document.getElementById( options.target ); } else { // use shared default container options.container = this.container; diff --git a/plugins/tagthisperson/popcorn.tagthisperson.js b/plugins/tagthisperson/popcorn.tagthisperson.js index c67a24c..519ac29 100644 --- a/plugins/tagthisperson/popcorn.tagthisperson.js +++ b/plugins/tagthisperson/popcorn.tagthisperson.js @@ -57,7 +57,7 @@ options:{ start : {elem:'input', type:'text', label:'In'}, end : {elem:'input', type:'text', label:'Out'}, - target : 'tag-container', + target : 'tagthisperson-container', person : {elem:'input', type:'text', label:'Name'}, image : {elem:'input', type:'text', label:'Image Src'}, href : {elem:'input', type:'text', label:'URL'} diff --git a/plugins/twitter/popcorn.twitter.js b/plugins/twitter/popcorn.twitter.js index b8aa8d9..103cec5 100644 --- a/plugins/twitter/popcorn.twitter.js +++ b/plugins/twitter/popcorn.twitter.js @@ -44,7 +44,7 @@ start : {elem:'input', type:'number', label:'In'}, end : {elem:'input', type:'number', label:'Out'}, src : {elem:'input', type:'text', label:'Source'}, - target : 'Twitter-container', + target : 'twitter-container', height : {elem:'input', type:'number', label:'Height'}, width : {elem:'input', type:'number', label:'Width'} } diff --git a/plugins/wikipedia/popcorn.wikipedia.js b/plugins/wikipedia/popcorn.wikipedia.js index 726d368..6049b7f 100644 --- a/plugins/wikipedia/popcorn.wikipedia.js +++ b/plugins/wikipedia/popcorn.wikipedia.js @@ -47,7 +47,7 @@ var wikiCallback; src : {elem:'input', type:'text', label:'Src'}, title : {elem:'input', type:'text', label:'Title'}, numberofwords : {elem:'input', type:'text', label:'Num Of Words'}, - target : 'wiki-container' + target : 'wikipedia-container' } }, /**