From: Anna Sobiepanek Date: Mon, 31 Jan 2011 17:42:17 +0000 (-0500) Subject: fixed spacing [#293] X-Git-Tag: v0.3~14^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3036b6cd82d27e0d1e16c883db142e8229fe9d67;p=popcorn-js.git fixed spacing [#293] --- diff --git a/plugins/wikipedia/popcorn.wikipedia.js b/plugins/wikipedia/popcorn.wikipedia.js index fccee4a..b8bd767 100644 --- a/plugins/wikipedia/popcorn.wikipedia.js +++ b/plugins/wikipedia/popcorn.wikipedia.js @@ -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('

') ); + _text = data.parse.text[ "*" ].substr( data.parse.text["*"].indexOf('

') ); _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 ); + document.getElementById( options.target ).removeChild( options._desc it ); } }