APIs

Show:
  1. /**
  2. Application fonts list
  3. @class MRSSLinks
  4. @constructor
  5. @return {object} instantiated MRSSLinks
  6. **/
  7. define(['jquery', 'backbone'], function ($, Backbone) {
  8.  
  9. /**
  10. Custom event fired when a new RSS link selected
  11. @event RSSLINK_CHANGED
  12. @param {This} caller
  13. @param {Self} context caller
  14. @param {Event} mrss link
  15. @static
  16. @final
  17. **/
  18. BB.EVENTS.RSSLINK_CHANGED = 'RSSLINK_CHANGED';
  19.  
  20. Backbone.SERVICES.RSS_LINKS = 'MRSSLinks';
  21.  
  22. var MRSSLinks = Backbone.StackView.Fader.extend({
  23.  
  24. /**
  25. Constructor
  26. @method initialize
  27. **/
  28. initialize: function () {
  29. var self = this;
  30.  
  31. this.m_mrssLinks = '<TextRss>' +
  32. '<Rss label="CNN Showbiz" url="http://rss.cnn.com/services/podcasting/ShowbizTonight/rss.xml"/>' +
  33. '<Rss label="CNN News " url="http://rss.cnn.com/services/podcasting/cnnnewsroom/rss.xml"/>' +
  34. '<Rss label="CNN missed it " url="http://rss.cnn.com/services/podcasting/incaseyoumissed/rss.xml"/>' +
  35. '<Rss label="CNN Latino " url="http://rss.cnn.com/services/podcasting/inamerica/rss.xmll"/>' +
  36. '<Rss label="CNN Amanpour" url="http://rss.cnn.com/services/podcasting/amanpour_video/rss"/>' +
  37. '<Rss label="CNN Student" url="http://rss.cnn.com/services/podcasting/studentnews/rss.xml"/>' +
  38. '<Rss label="CNN King" url="http://rss.cnn.com/services/podcasting/lkl/rss.xml"/>' +
  39. '<Rss label="CNN Meade" url="http://rss.cnn.com/services/podcasting/robinmeade/rss.xml"/>' +
  40. '<Rss label="CNN Absurd" url="http://rss.cnn.com/services/podcasting/absurd/rss.xml"/>' +
  41. '<Rss label="CNN Health" url="http://rss.cnn.com/services/podcasting/gupta/rss.xml"/>' +
  42. '<Rss label="CNN Fareed" url="http://rss.cnn.com/services/podcasting/fareedzakaria/rss.xml"/>' +
  43. '<Rss label="CNN Screening" url="http://rss.cnn.com/services/podcasting/thescreeningroom/rss.xml"/>' +
  44. '<Rss label="CNN Politics" url="http://rss.cnn.com/services/podcasting/bestpolitics/rss.xml"/>' +
  45. '<Rss label="ABC World News" url="http://feeds.abcnews.com/abcnews/worldnewsvideopodcast"/>' +
  46. '<Rss label="ABC 20/20" url="http://feeds.abcnews.com/abcnews/2020intouchvideopodcast"/>' +
  47. '<Rss label="ABC Medical Minute" url="http://feeds.abcnews.com/abcnews/medicalminutevideoppodcast"/>' +
  48. '<Rss label="ABC Popcorn" url="http://feeds.abcnews.com/abcnews/popcornvideopodcast"/>' +
  49. '<Rss label="ABC Buzz" url="http://feeds.abcnews.com/abcnews/whatsthebuzzvideopodcast"/>' +
  50. '<Rss label="ABC Nightline" url="http://feeds.abcnews.com/abcnews/nightlinevideopodcast"/>' +
  51. '<Rss label="ABC Health" url="http://feeds.abcnews.com/abcnews/gmahealthvideopodcast"/>' +
  52. '<Rss label="ABC Money Minute" url="http://feeds.abcnews.com/abcnews/moneyminutevideopodcast"/>' +
  53. '<Rss label="ABC Extreme" url="http://feeds.abcnews.com/abcnews/extremevideopodcast"/>' +
  54. '<Rss label="ABC Top Line" url="http://feeds.abcnews.com/abcnews/toplinevideopodcast"/>' +
  55. '<Rss label="ABC Curve" url="http://feeds.abcnews.com/abcnews/aheadofthecurvevideopodcast"/>' +
  56. '<Rss label="ABC Interview" url="http://feeds.abcnews.com/abcnews/blausteinreviewsvideopodcast"/>' +
  57. '<Rss label="NBC Press" url="http://podcast.msnbc.com/audio/podcast/MSNBC-MTP-NETCAST-M4V.xml"/>' +
  58. '<Rss label="NBC Nightly" url="http://podcast.msnbc.com/audio/podcast/MSNBC-NN-NETCAST-M4V.xml"/>' +
  59. '<Rss label="NBC Today" url="http://podcast.msnbc.com/audio/podcast/MSNBC-TDY-PODCAST-M4V.xml"/>' +
  60. '<Rss label="NBC Countdown" url="http://podcast.msnbc.com/audio/podcast/MSNBC-COUNTDOWN-NETCAST-M4V.xml"/>' +
  61. '<Rss label="NBC meadow" url="http://podcast.msnbc.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml"/>' +
  62. '<Rss label="NBC Zeitgeist" url="http://podcast.msnbc.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml"/>' +
  63. '<Rss label="NBC Business" url="http://podcast.msnbc.com/audio/podcast/MSNBC-YB-NETCAST-M4V.xml"/>' +
  64. '<Rss label="Discovery" url="http://www.discovery.com/radio/xml/discovery_video.xml"/>' +
  65. '<Rss label="NOVA " url="http://www.pbs.org/wgbh/nova/rss/nova-vodcast-pb.xml"/>' +
  66. '<Rss label="Link Tv" url="http://www.linktv.org/rss/hq/globalpulse.xml"/>' +
  67. '<Rss label="Geek Brief" url="http://geekbrief.podshow.com/feed.xml"/>' +
  68. '<Rss label="Dig Nation" url="http://feeds.feedburner.com/diggnationvideo"/>' +
  69. '<Rss label="Tiki Bar" url="http://feeds.feedburner.com/TikiBarTV"/>' +
  70. '<Rss label="Fox lips and ears" url="http://video.foxnews.com/v/feed/playlist/86876.xml?template=rss.xml?template=rss"/>' +
  71. '<Rss label="Fox Hollyowood" url="http://video.foxnews.com/v/feed/playlist/86878.xml?template=rss.xml?template=rss"/>' +
  72. '<Rss label="Fox showbiz" url="http://video.foxnews.com/v/feed/playlist/86871.xml?template=rss.xml?template=rss"/>' +
  73. '<Rss label="Fox Us new" url="http://video.foxnews.com/v/feed/playlist/86856.xml?template=rss.xml?template=rss"/>' +
  74. '<Rss label="Fox lates news" url="http://video.foxnews.com/v/feed/playlist/87249.xml?template=rss.xml?template=rss"/>' +
  75. '<Rss label="Fox Business" url="http://video.foxnews.com/v/feed/playlist/86927.xml?template=rss"/>' +
  76. '<Rss label="Fox world news" url="http://video.foxnews.com/v/feed/playlist/86857.xml?template=rss.xml?template=rss"/>' +
  77. '<Rss label="Fox politics" url="http://video.foxnews.com/v/feed/playlist/86858.xml?template=rss.xml?template=rss"/>' +
  78. '<Rss label="Fox Health" url="http://video.foxnews.com/v/feed/playlist/86859.xml?template=rss.xml?template=rss"/>' +
  79. '<Rss label="CBS Face The Nation" url="http://feeds.cbsnews.com/podcast_nation_video_1"/>' +
  80. '<Rss label="CBS Evening News" url="http://feeds.cbsnews.com/podcast_eveningnews_video_1"/>' +
  81. '<Rss label="TED TALKS" url="http://feeds.feedburner.com/tedtalks_video"/>' +
  82. '<Rss label="CNET.COM Always On" url="http://feeds.feedburner.com/AlwaysOnsd"/>' +
  83. '<Rss label="CNET.COM ApleByte" url="http://feeds2.feedburner.com/cnet/applebyte"/>' +
  84. '<Rss label="CNET.COM Cars" url="http://feeds.feedburner.com/CnetOnCarssd"/>' +
  85. '<Rss label="CNET.COM Crave " url="http://feeds.feedburner.com/cnet/cravehq"/>' +
  86. '<Rss label="CNET.COM UPDATE" url="http://feeds.feedburner.com/CNETUpdateSD"/>' +
  87. '<Rss label="CNET.COM News" url="http://feeds.feedburner.com/cnet/news"/>' +
  88. '<Rss label="CNET.COM CarTech" url="http://feeds2.feedburner.com/cnet/cartechvideo"/>' +
  89. '<Rss label="CNET.COM CrackingOpen" url="http://feeds.feedburner.com/CrackingOpenSD"/>' +
  90. '<Rss label="CNET.COM Conversations" url="http://feeds.feedburner.com/cnet/conversations"/>' +
  91. '<Rss label="CNET.COM Top5" url="http://feeds2.feedburner.com/cnet/top5"/>' +
  92. '<Rss label="CNET.COM FirstLook" url="http://feeds.feedburner.com/cnet/firstlook"/>' +
  93. '<Rss label="CNET.COM InsideScoop" url="http://feeds.feedburner.com/InsideScoopsd"/>' +
  94. '<Rss label="CNET.COM 404" url="http://feeds.feedburner.com/cnet/the404video"/>' +
  95. '<Rss label="CNET.COM HowTo" url="http://feeds2.feedburner.com/cnet/howto"/>' +
  96. '<Rss label="CNET.COM PrizeFight" url="http://feeds2.feedburner.com/cnet/prizefight"/>' +
  97. '<Rss label="CNET.COM RumorHasIt" url="http://feeds.feedburner.com/RumorHasItsd"/>' +
  98. '<Rss label="CNET.COM TapThatApp" url="http://feeds.feedburner.com/cnet/tapthatapp"/>' +
  99. '<Rss label="LINKTV EartFocus" url="http://www.linktv.org/rss/general/earth.xml"/>' +
  100. '<Rss label="LINKTV Explore" url="http://www.linktv.org/rss/general/explorespecial1.xml"/>' +
  101. '<Rss label="LINKTV GlobalPulse" url="http://www.linktv.org/rss/general/globalpulse.xml"/>' +
  102. '<Rss label="LINKTV LatinPulse" url="http://www.linktv.org/rss/general/latin_pulse.xml"/>' +
  103. '<Rss label="LINKTV MosaicIR" url="http://www.linktv.org/rss/general/MIR.xml"/>' +
  104. '<Rss label="LINKTV MosaicNews" url="http://www.linktv.org/rss/general/mosaic.xml"/>' +
  105. '<Rss label="LINKTV Best" url="http://www.linktv.org/rss/general/best.xml"/>' +
  106. '<Rss label="NOVA Video" url="http://feeds.pbs.org/pbs/wgbh/nova-video"/>' +
  107. '<Rss label="Washington Post Video" url="http://www.washingtonpost.com/wp-srv/mmedia/vipod.xml"/>' +
  108. '<Rss label="CBC TheNational" url="http://www.cbc.ca/podcasting/includes/thenational-video-podcast.xml"/>' +
  109. '<Rss label="CBC AtIssue" url="http://www.cbc.ca/mediafeeds/rss/cbc/atissue-video-podcast.xml"/>' +
  110. '<Rss label="CBC Rex Murphy" url="http://www.cbc.ca/mediafeeds/rss/cbc/rexmurphy-video-podcast.xml"/>' +
  111. '<Rss label="IMORE Show" url="http://feeds.feedburner.com/iphonelivevideo"/>' +
  112. '<Rss label="IMORE MobileNations" url="http://feeds.feedburner.com/mobilenationsvideo"/>' +
  113. '<Rss label="IMORE AndroidCentral" url="http://feeds.feedburner.com/androidcentralvideo"/>' +
  114. '<Rss label="IMORE ZenAndTech" url="http://feeds.feedburner.com/zenandtechvideo"/>' +
  115. '<Rss label="REUTERS Financial" url="http://feeds.reuters.com/reuters/video/companyus/rss/mp4/"/>' +
  116. '<Rss label="REUTERS BrakingNews" url="http://feeds.reuters.com/reuters/video/breakingviews/rss/mp4/"/>' +
  117. '<Rss label="REUTERS Chrystia Freeland" url="http://feeds.reuters.com/reuters/video/chrystiafreeland/rss/mp4/"/>' +
  118. '<Rss label="REUTERS Entertainment" url="http://feeds.reuters.com/reuters/video/entertainment/rss/mp4/"/>' +
  119. '<Rss label="REUTERS Felix Salmon" url="http://feeds.reuters.com/reuters/video/felixsalmon/rss/mp4/"/>' +
  120. '<Rss label="REUTERS Newsmaker" url="http://feeds.reuters.com/reuters/video/newsmakerus/rss/mp4/"/>' +
  121. '<Rss label="REUTERS Odly Enough" url="http://feeds.reuters.com/reuters/video/andfinally/rss/m4v/"/>' +
  122. '<Rss label="REUTERS PersonalFinance" url="http://feeds.reuters.com/reuters/video/personalfinance/rss/mp4/"/>' +
  123. '<Rss label="REUTERS Technology" url="http://feeds.reuters.com/reuters/video/technology/rss/mp4/"/>' +
  124. '<Rss label="REUTERS QuickCut" url="http://feeds.reuters.com/reuters/video/quickcut/rss/mp4/"/>' +
  125. '<Rss label="REUTERS TopNews" url="http://feeds.reuters.com/reuters/USVideoTopNews"/>' +
  126. '<Rss label="REUTERS Politics" url="http://feeds.reuters.com/reuters/USVideoPolitics"/>' +
  127. '<Rss label="REUTERS Rough Cuts" url="http://feeds.reuters.com/reuters/USVideoRoughCuts"/>' +
  128. '<Rss label="REUTERS World News" url="http://feeds.reuters.com/reuters/USVideoWorldNews"/>' +
  129. '<Rss label="REUTERS Small Business" url="http://feeds.reuters.com/reuters/USVideoSmallBusiness"/>' +
  130. '<Rss label="REUTERS GigaOM" url="http://feeds.reuters.com/reuters/USVideoGigaom"/>' +
  131. '<Rss label="REUTERS Envinroment" url="http://feeds.reuters.com/reuters/USVideoEnvironment"/>' +
  132. '<Rss label="REUTERS Latest Video" url="http://feeds.reuters.com/reuters/USVideoLatest"/>' +
  133. '<Rss label="AL JAZEERA World" url="http://feeds.aljazeera.net/podcasts/aljazeeraworld"/>' +
  134. '<Rss label="AL JAZEERA Correspondent" url="http://feeds.aljazeera.net/podcasts/aljazeeracorrespondent"/>' +
  135. '<Rss label="AL JAZEERA Indian Hospital" url="http://feeds.aljazeera.net/podcasts/indianhospital"/>' +
  136. '<Rss label="AL JAZEERA The Cure" url="http://feeds.aljazeera.net/podcasts/thecure"/>' +
  137. '<Rss label="AL JAZEERA LivingTheLanguage" url="http://feeds.aljazeera.net/podcasts/livingthelanguage"/>' +
  138. '<Rss label="AL JAZEERA Slavery" url="http://feeds.aljazeera.net/podcasts/slavery"/>' +
  139. '<Rss label="AL JAZEERA Africa Investigates" url="http://feeds.aljazeera.net/podcasts/africainvestigates"/>' +
  140. '<Rss label="AL JAZEERA Artscape" url="http://feeds.aljazeera.net/podcasts/artscape"/>' +
  141. '<Rss label="AL JAZEERA Earthrise" url="http://feeds.aljazeera.net/podcasts/earthrise"/>' +
  142. '<Rss label="AL JAZEERA Faultlines" url="http://feeds.aljazeera.net/podcasts/faultlines"/>' +
  143. '<Rss label="AL JAZEERA Documentaries" url="http://feeds.aljazeera.net/podcasts/featureddocumentaries"/>' +
  144. '<Rss label="AL JAZEERA PeopleAndPower" url="http://feeds.aljazeera.net/podcasts/peopleandpower"/>' +
  145. '<Rss label="AL JAZEERA TheStream" url="http://feeds.aljazeera.net/podcasts/thestream"/>' +
  146. '<Rss label="AL JAZEERA SurprisingEurope" url="http://feeds.aljazeera.net/podcasts/surprisingeurope"/>' +
  147. '<Rss label="AL JAZEERA Activate" url="http://feeds.aljazeera.net/podcasts/activate"/>' +
  148. '<Rss label="NASA Vodcast" url="http://www.nasa.gov/rss/dyn/NASAcast_vodcast.rss"/>' +
  149. '<Rss label="DEMOCRACY NOW" url="http://www.democracynow.org/podcast-video.xml"/>' +
  150. '<Rss label="KQED Check Please" url="http://www.kqed.org/rss/checkplease.xml"/>' +
  151. '<Rss label="KQED Quest Video" url="http://www.kqed.org/rss/questvideo.xml"/>' +
  152. '<Rss label="KQED Science On Spot" url="http://www.kqed.org/rss/quest_sots_HD.xml"/>' +
  153. '<Rss label="KQED This Week" url="http://feeds.feedburner.com/kqedthisweek"/>' +
  154. '<Rss label="KQED TrueCaShorts" url="http://feeds.feedburner.com/KqedTrulyCaShorts"/>' +
  155. '<Rss label="CFR Podcasts" url="http://feeds.cfr.org/publication/video"/>' +
  156. '<Rss label="DOCTOR FLOYD" url="http://www.doctorfloyd.com/video/rss.xml"/>' +
  157. '<Rss label="ESRI Events" url="http://feeds.feedburner.com/EsriVideo-Eventssmall"/>' +
  158. '<Rss label="ESRI People" url="http://feeds.feedburner.com/EsriVideo-Peoplesmall"/>' +
  159. '<Rss label="ESRI Products" url="http://feeds.feedburner.com/EsriVideo-Productssmall"/>' +
  160. '<Rss label="KCM" url="http://www.kcm.org/feed/en/itunes/webcast/video"/>' +
  161. '<Rss label="EURONEWS NoComment" url="http://feeds.feedburner.com/euronews/en/Euronews-NoComment/"/>' +
  162. '<Rss label="DIVEFILM Diving Films" url="http://divefilm.com/podcasts/podcast.xml"/>' +
  163. '<Rss label="CARNEGIE COUNCIL" url="http://www.carnegiecouncil.org/resources/video/rss/feed.xml"/>' +
  164. '<Rss label="AMAZINGFACTS Presents" url="http://feeds.feedburner.com/AmazingFactsPresents"/>' +
  165. '<Rss label="CSH" url="http://feeds.feedburner.com/CSHVideo"/>' +
  166. '<Rss label="CALIFORNIA ACADEMY" url="http://www.calacademy.org/rss/feed/?id=2"/>' +
  167. '<Rss label="TIMES OF INDIA 1" url="http://timesofindia.feedsportal.com/c/33039/f/534004/index.rss"/>' +
  168. '<Rss label="AMEINFO.COM Latest" url="http://www.ameinfo.com/rss/ame_video_mp4.xml"/>' +
  169. '<Rss label="AMEINFO.COM Industry" url="http://www.ameinfo.com/rss/italk_mp4.xml"/>' +
  170. '<Rss label="AMEINFO.COM Aviation" url="http://www.ameinfo.com/rssfeeds/11168.xml"/>' +
  171. '<Rss label="AMEINFO.COM Business" url="http://www.ameinfo.com/rssfeeds/3191.xml"/>' +
  172. '<Rss label="AMEINFO.COM Conferences" url="http://www.ameinfo.com/rssfeeds/3187.xml"/>' +
  173. '<Rss label="AMEINFO.COM Face to Face" url="http://www.ameinfo.com/rssfeeds/9992.xml"/>' +
  174. '<Rss label="AMEINFO.COM Gitex" url="http://www.ameinfo.com/rssfeeds/10587.xml"/>' +
  175. '<Rss label="AMEINFO.COM IT, Internet, and Telcos" url="http://www.ameinfo.com/rssfeeds/3184.xml"/>' +
  176. '<Rss label="AMEINFO.COM Luxury" url="http://www.ameinfo.com/rssfeeds/9617.xml"/>' +
  177. '<Rss label="AMEINFO.COM Media, PR, Advertisement" url="http://www.ameinfo.com/rssfeeds/3974.xml"/>' +
  178. '<Rss label="AMEINFO.COM Mobile, Electronics" url="http://www.ameinfo.com/rssfeeds/3185.xml"/>' +
  179. '<Rss label="AMEINFO.COM Test Drive" url="http://www.ameinfo.com/rssfeeds/3289.xml"/>' +
  180. '<Rss label="AMEINFO.COM Property Report" url="http://www.ameinfo.com/rssfeeds/3188.xml"/>' +
  181. '<Rss label="AMEINFO.COM Retail" url="http://www.ameinfo.com/rssfeeds/3190.xml"/>' +
  182. '<Rss label="AMEINFO.COM Technology" url="http://www.ameinfo.com/rssfeeds/10660.xml"/>' +
  183. '<Rss label="AMEINFO.COM Travel" url="http://www.ameinfo.com/rssfeeds/3183.xml"/>' +
  184. '<Rss label="CATEGORY 5" url="http://rss.cat5.tv/sd"/>' +
  185. '<Rss label="1 UP Show" url="http://feeds.feedburner.com/1UP/1upShow"/>' +
  186. '<Rss label="1 UP Broken Pixels" url="http://www.1up.com/flat/Podcasts/brokenpixels.xml"/>' +
  187. '<Rss label="I UP Espn" url="http://www.1up.com/flat/Podcasts/espn.xml"/>' +
  188. '<Rss label="1UP Retro" url="http://www.1up.com/flat/Podcasts/retrobonusstage.xml"/>' +
  189. '<Rss label="64MM - Skateboarding" url="http://feeds.feedburner.com/64mmVlog"/>' +
  190. '<Rss label="FEM - Blogs" url="http://feeds.feedburner.com/FEMvideoblogs"/>' +
  191. '<Rss label="Bringing Disneyland Home" url="http://www.oakfan.com/BDHVodcast.xml"/>' +
  192. '<Rss label="Ricky Gervais" url="http://podcast.rickygervais.com/podcast.xml"/>' +
  193. '<Rss label="Terra Videos" url="http://feeds.feedburner.com/Terravideos"/>' +
  194. '<Rss label="PLAYHOUSE TV" url="http://playhousetv.podomatic.com/rss2.xml"/>' +
  195. '<Rss label="DLTV" url="http://feeds2.feedburner.com/ziffdavis/dltvipodpspvideo"/>' +
  196. '<Rss label="ADOBE CREATIVE SUITE " url="http://creativesuitepodcast.com/rss"/>' +
  197. '<Rss label="COMMAND N" url="http://feeds.feedburner.com/commandN_pod"/>' +
  198. '<Rss label="GEEK BRIEF TV" url="http://geekbrief.podshow.com/feed.xml"/>' +
  199. '<Rss label="One Minute Tip (Photoshop)" url="http://www.newmediamanuals.com/podcast/ivideos/video.xml"/>' +
  200. '<Rss label="PHOTOSHOP TV" url="http://feeds.feedburner.com/photoshoptv"/>' +
  201. '<Rss label="LDS.ORH Mormon Church " url="http://feeds.lds.org/cesfiresidesvideo"/>' +
  202. '<Rss label="LDS.ORH Conferences" url="http://feeds.lds.org/lds-general-conference-sd-eng"/>' +
  203. '<Rss label="UCL London" url="http://itunes.ucl.ac.uk/rss-feeds/introducing/provost/rss"/>' +
  204. '<Rss label="UCL News" url="http://itunes.ucl.ac.uk/rss-feeds/news/news4/rss"/>' +
  205. '<Rss label="UCL Fine arts" url="http://itunes.ucl.ac.uk/rss-feeds/news/news5/rss"/>' +
  206. '<Rss label="UCL Torture Team" url="http://itunes.ucl.ac.uk/rss-feeds/news/news6/rss"/>' +
  207. '<Rss label="UCL Donor Reception" url="http://itunes.ucl.ac.uk/rss-feeds/news/news7/rss"/>' +
  208. '<Rss label="UCL Research" url="http://itunes.ucl.ac.uk/rss-feeds/research/price/rss"/>' +
  209. '<Rss label="UCL Research China" url="http://itunes.ucl.ac.uk/rss-feeds/research/boxing/rss"/>' +
  210. '<Rss label="UCL Health" url="http://itunes.ucl.ac.uk/rss-feeds/global-health/governance/rss"/>' +
  211. '<Rss label="VH1 BestWeek" url="http://feeds.feedburner.com/vh1_bestweekever"/>' +
  212. '<Rss label="VH1 BestOf" url="http://feeds.feedburner.com/vh1_bestof"/>' +
  213. '<Rss label="VH1 Celebreality" url="http://feeds.feedburner.com/vh1_celebreality"/>' +
  214. '<Rss label="VH1 FlavorOfLove" url="http://feeds.feedburner.com/vh1_flavoroflove"/>' +
  215. '<Rss label="TWIT TV" url="http://feeds.twit.tv/twit_video_large"/>' +
  216. '<Rss label="NBC MONTANA" url="http://www.nbcmontana.com/-/14594424/15193836/-/format/rss_2.0/view/asFeed/-/7ht7wl/-/index.xml"/>' +
  217. '<Rss label="ItunesPoadcast Tutorial" url="http://www.feedforall.com/rss-video-tutorials.xml"/>' +
  218. '<Rss label="BEST OF YOUTUBE" url="http://mevio.com/feeds/bestofyoutube.xml"/>' +
  219. '<Rss label="Custom" url=""/>' +
  220. '</TextRss>'
  221.  
  222. self._populateMRSSLinks();
  223. self._listenInputChange();
  224. },
  225.  
  226.  
  227. /**
  228. When user changes a URL link for the feed, update the msdb
  229. @method _listenInputChange
  230. @return none
  231. **/
  232. _listenInputChange: function () {
  233. var self = this;
  234.  
  235. // Text input change
  236. var onChange = _.debounce(function (e) {
  237. var text = $(e.target).val();
  238. BB.comBroker.fire(BB.EVENTS.RSSLINK_CHANGED,self,self,text);
  239. }, 150);
  240. self.m_inputChangeHandler = $(Elements.MRSS_LINK).on("input", onChange);
  241.  
  242. // drop selection box
  243. $(Elements.MRSS_SOURCE).on('change', function (e) {
  244. var url = $("option:selected", e.target).val();
  245. if (url==''){
  246. $(Elements.MRSS_LINK).val('');
  247. $(Elements.MRSS_LINK).fadeIn('fast');
  248. } else {
  249. $(Elements.MRSS_LINK).fadeOut('fast');
  250. }
  251. onChange(e);
  252. });
  253. },
  254.  
  255. /**
  256. Build list of available RSS links from embedded XML
  257. @method _populateMRSSLinks
  258. **/
  259. _populateMRSSLinks: function(){
  260. var self = this;
  261. var snippet = '';
  262. self.m_MRSSLinks = $($.parseXML(self.m_mrssLinks)).find('Rss');
  263. $.each(self.m_MRSSLinks,function(k,v){
  264. snippet = snippet + '\n<option value="' + $(v).attr('url') + '">' + $(v).attr('label') + '</option>';
  265. });
  266. self.$el.append(snippet);
  267. },
  268.  
  269. /**
  270. Insert selected RSS URL and load appropriate select UI selection
  271. @method i_url
  272. @param {String} i_url
  273. **/
  274. setMRssLink: function(i_url){
  275. var self = this;
  276. $(Elements.MRSS_LINK).val(i_url);
  277. var found = 0;
  278. self.$el.children().each(function(k,v){
  279. if ( $(v).val() == i_url){
  280. $(v).prop('selected','selected');
  281. found = 1;
  282. return false;
  283. }
  284. });
  285. if (found){
  286. $(Elements.MRSS_LINK).fadeOut('fast');
  287. } else {
  288. $("option:last",self.$el).prop("selected","selected");
  289. $(Elements.MRSS_LINK).fadeIn('fast');
  290. }
  291. }
  292. });
  293.  
  294. return MRSSLinks;
  295. });