From 5fe1fff10d8980f3a5f2dd82a48dbd12f7575af5 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Tue, 6 Jul 2010 10:16:18 -0400 Subject: [PATCH] Errors in the html that was breaking on chrome --- index.html | 4 ++-- popcorn.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.43.0