]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed spacing [#293]
authorAnna Sobiepanek <annaopensource@gmail.com>
Mon, 31 Jan 2011 17:46:22 +0000 (12:46 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Mon, 31 Jan 2011 17:46:22 +0000 (12:46 -0500)
plugins/wikipedia/popcorn.wikipedia.js

index b8bd767da8ca65df9057f2e1ab52e321a944faaf..f81ee30ae665585d77a7f1653fc45a4f36beca0c 100644 (file)
@@ -80,7 +80,7 @@ var wikiCallback;
         // get the content of the wiki article
         options._desc = document.createElement( 'p' );
         // get the article text and remove any special characters
-        _text = data.parse.text[ "*" ].substr( data.parse.text["*"].indexOf('<p>') );
+        _text = data.parse.text[ "*" ].substr( data.parse.text[ "*" ].indexOf('<p>') );
         _text = _text.replace(/((<(.|\n)+?>)|(\((.*?)\) )|(\[(.*?)\]))/g, "");
         options._desc.innerHTML = _text.substr( 0,  options.numberofwords ) + " ...";
         
@@ -132,7 +132,7 @@ var wikiCallback;
       // DOM before removal
       if ( options._added ) {
         document.getElementById( options.target ).removeChild( options._link );
-        document.getElementById( options.target ).removeChild( options._desc it );
+        document.getElementById( options.target ).removeChild( options._desc );
       }
     }