]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#568] stable target names in manifest
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 10 Jun 2011 21:13:03 +0000 (17:13 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 10 Jun 2011 21:13:03 +0000 (17:13 -0400)
plugins/flickr/popcorn.flickr.js
plugins/image/popcorn.image.js
plugins/subtitle/popcorn.subtitle.js
plugins/tagthisperson/popcorn.tagthisperson.js
plugins/twitter/popcorn.twitter.js
plugins/wikipedia/popcorn.wikipedia.js

index 1009fea74cd301cc90050b98841c8cf7fa42b849..8b7a939fe7814cbecfd90c4fe276c6b9a694a4c5 100644 (file)
       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'},
index b26d02604e0f2bb9c06f7adbbf0a1866a4df9d26..dc5f90dc26948396754e435c45994cb499d0307b 100644 (file)
@@ -52,7 +52,7 @@
             type: "text",
             label: "Link URL"
           },
-          target: "Image-container",
+          target: "image-container",
           src: {
             elem: "input", 
             type: "text",   
index f56d98671a59f3b07f48361a5cbd3945752e3f47..0759d78c356c4e6cec2fda66388eb3acc3c9cb10 100644 (file)
         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'}
         }
       },
       _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;
index c67a24ce57e55102d5afd5d4c568de0866f474b8..519ac294884d7b27f7073dcbc19d8817d2cc6144 100644 (file)
@@ -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'}   
index b8aa8d910b26cb163d1b6c996f16d477f48842a3..103cec5e8f22bd1310e5db151cd9f99b5bd8a848 100644 (file)
@@ -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'}
         }
index 726d368d7ecfb91e9f15d77c559bc342cc3c7963..6049b7fffd0fa77215636bb12522912b76bb4836 100644 (file)
@@ -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'
       }
     },
     /**