From: ScottDowne Date: Tue, 6 Jul 2010 14:16:18 +0000 (-0400) Subject: Errors in the html that was breaking on chrome X-Git-Tag: v0.1~39^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5fe1fff10d8980f3a5f2dd82a48dbd12f7575af5;p=popcorn-js.git Errors in the html that was breaking on chrome --- diff --git a/index.html b/index.html index 6ef8393..cd2db79 100644 --- a/index.html +++ b/index.html @@ -113,7 +113,7 @@
Google Translate and jQuery
- All subtitles (accessibility) + All subtitles (accessibility) @@ -208,7 +208,7 @@

diff --git a/popcorn.js b/popcorn.js index 2ce7cf8..49f5671 100644 --- a/popcorn.js +++ b/popcorn.js @@ -586,7 +586,7 @@ link.appendChild(p); // get the first 140 characters of the wiki content var desc = document.createElement('p'); - var text = data.parse.text.*.substr(data.parse.text.*.indexOf('

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

')); text = text.replace(/((<(.|\n)+?>)|(\((.*?)\) )|(\[(.*?)\]))/g, ""); desc.innerHTML = text.substr(0, ( length || 140 )) + " ..."; target.appendChild(link);