]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merge branch 'dutch' of github.com:ScottDowne/popcorn-js
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 12 Oct 2010 17:52:01 +0000 (13:52 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 12 Oct 2010 17:52:01 +0000 (13:52 -0400)
Conflicts:
popcorn.js

1  2 
popcorn.js

diff --cc popcorn.js
index 7e9a82497576ee0f73bf85876d1a8a204058229a,e6ff6d52407d5c2f64cd2131afe61486e6512b57..10e7cc242e9ae4427559ed058eb93700266c63cb
    
    Popcorn.WikiCommand = function(name, params, text, videoManager) {
      Popcorn.VideoCommand.call(this, name, params, text, videoManager);
 -    
 -    var src = this.params.src;
+ 
 +    //L10n
 +    var src = this.params.src;
 +    var lang = this.params.lang;
 +    if (typeof lang === "undefined") { lang="en"; }   
 +    //end L10n
 +    var length = this.params.numberOfWords;
++
+     // All data from Universal Subtitles comes from the text attribute
+     // so the data from that needs to enter the appropriate fields
+     if (typeof text === "string" && text !== "") {
+       this.params.src = text;
+       // Universal Subtitles has no target attribute, so we create a default
+       this.params.target = "wikidiv";
+     }
++
+     var length = this.params.numberOfWords || 200;
      // Setup a default, hidden div to hold the images
      var target = document.createElement('div');
      target.setAttribute('id', this.id);