From: ScottDowne Date: Mon, 20 Dec 2010 19:41:48 +0000 (-0500) Subject: [#159] twitter uses @ instead of from: in the twitter source X-Git-Tag: v0.2~22^2~3^2~11 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c0f9d44312a3dee646889fe003ea7c4ef81e769f;p=popcorn-js.git [#159] twitter uses @ instead of from: in the twitter source --- diff --git a/plugins/twitter/popcorn.twitter.html b/plugins/twitter/popcorn.twitter.html index 3dd09ac..2d9990e 100644 --- a/plugins/twitter/popcorn.twitter.html +++ b/plugins/twitter/popcorn.twitter.html @@ -13,7 +13,7 @@ start: 5, // seconds end: 15, // seconds title: 'Steve Song', - source: 'from:stevesong', + source: '@stevesong', target: 'twitterdiv', } ) .twitter({ diff --git a/plugins/twitter/popcorn.twitter.js b/plugins/twitter/popcorn.twitter.js index 9eb5c82..0f2bc4d 100644 --- a/plugins/twitter/popcorn.twitter.js +++ b/plugins/twitter/popcorn.twitter.js @@ -19,7 +19,7 @@ .twitter({ start: 5, // seconds, mandatory end: 15, // seconds, mandatory - source: 'from:stevesong', // mandatory + source: '@stevesong', // mandatory title: 'title', // optional subject: 'subject', // optional height: 200, // optional @@ -39,7 +39,7 @@ document.getElementById( options.target ).appendChild( options.container ); // add the widget's div to the target div // setup info for the widget - var source = options.source || "", + var source = options.source.replace(/^@/, "from:") || "", title = options.title || null, subject = options.subject || null, width = options.width || 250,