Replaced slashdot: with rss:url

This commit is contained in:
mgalli%geckonnection.com 2005-11-21 18:48:07 +00:00
Родитель dc5fae9e7c
Коммит 40e24304db
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -640,13 +640,15 @@ function DoBrowserRSS(sKey) {
if(!sKey) BrowserViewRSS(); // The toolbar is being used. Otherwise it is via the sb: trap protocol. if(!sKey) BrowserViewRSS(); // The toolbar is being used. Otherwise it is via the sb: trap protocol.
try { try {
if(sKey) { if(sKey) {
gRSSTag=sKey; gRSSTag=sKey;
} else if(document.getElementById("toolbar-rss-rsstag").value!="") { } else if(document.getElementById("toolbar-rss-rsstag").value!="") {
gRSSTag=document.getElementById("toolbar-rss-rsstag").value; gRSSTag=document.getElementById("toolbar-rss-rsstag").value;
} }
getBrowser().selectedTab = getBrowser().addTab('chrome://minimo/content/rssview/rssload.xhtml?url=http://rss.slashdot.org/Slashdot/slashdot'); getBrowser().selectedTab = getBrowser().addTab('chrome://minimo/content/rssview/rssload.xhtml?url='+gRSSTag);
browserInit(getBrowser().selectedTab); browserInit(getBrowser().selectedTab);
} catch (e) { } catch (e) {
@ -813,8 +815,8 @@ function URLBarEntered()
/* Trap to RSS 'protocol' */ /* Trap to RSS 'protocol' */
if(gURLBar.value.substring(0,9)=="slashdot:") { if(gURLBar.value.substring(0,4)=="rss:") {
DoBrowserRSS(gURLBar.value.split("slashdot:")[1]); DoBrowserRSS(gURLBar.value.split("rss:")[1]);
return; return;
} }