Go to the source code of this file.
|
| if (typeof(Cc)=="undefined") var Cc |
|
resultsEl | empty () |
|
| dataCallback (function(results){if(results==null||results.length==0) return;results.forEach(function(val, i, arr){if((!limit &&(i >=LIMIT_NAV_RESULTS))||(limit &&(i >=limit))) return;var rowClass="row-even";if(i%2) rowClass="row-odd";var playStr=LastfmTuner._strings.GetStringFromName("lastfm.radio.play");var stationEl=$("<div class='nav-station "+rowClass+"'>"+"<div class='station-play-button'><a href='"+val.stationUrl+"'><img src='"+RADIO_ICON_SMALL+"'/>"+playStr+"</a></div>"+"<img src ='chrome://sb-lastfm/skin/"+val.type+".png' class='icon-type' />"+val.name+"</div>");$(".station-play-button", stationEl).click(function(e){e.stopPropagation();e.preventDefault();dump("Saving recent station\n");LastfmTuner.saveRecentStation(val);LastfmTuner.svc.radioPlay(val.stationUrl);});stationEl.click(function(e){dump("type: "+val.type+"\n");switch(val.type){case"artist":LastfmTuner.drawSingleArtist(val);break;case"tag":LastfmTuner.drawSingleTag(val);break;case"user":LastfmTuner.drawSingleUser(val);break;default:gBrowser.loadOneTab(val.url);}});stationEl.hover(function(e){this.oldClass=this.className;this.className+=" row-open";}, function(e){this.className=this.oldClass;});resultsEl.append(stationEl);});}) |
|
window | resize (function(e){var bodyHeight=$('body')[0].scrollHeight;var height=bodyHeight-$('#header')[0].scrollHeight;var height2=$('#left-content')[0].scrollHeight;if(height2 > height) height=height2;$('#right-nav').css({"min-height":height});height=$('#content')[0].scrollHeight+$('#header')[0].scrollHeight;$(".wrapper-box").css({"height":bodyHeight,"max-height":bodyHeight});$("#login-page").css({"min-height":height});$("#subscriber-page").css({"min-height":height});}) |
|
dataCallback |
( |
function(results){if(results==null||results.length==0) return;results.forEach(function(val, i, arr){if((!limit &&(i >=LIMIT_NAV_RESULTS))||(limit &&(i >=limit))) return;var rowClass="row-even";if(i%2) rowClass="row-odd";var playStr=LastfmTuner._strings.GetStringFromName("lastfm.radio.play");var stationEl=$("<div class='nav-station "+rowClass+"'>"+"<div class='station-play-button'><a href='"+val.stationUrl+"'><img src='"+RADIO_ICON_SMALL+"'/>"+playStr+"</a></div>"+"<img src ='chrome://sb-lastfm/skin/"+val.type+".png' class='icon-type' />"+val.name+"</div>");$(".station-play-button", stationEl).click(function(e){e.stopPropagation();e.preventDefault();dump("Saving recent station\n");LastfmTuner.saveRecentStation(val);LastfmTuner.svc.radioPlay(val.stationUrl);});stationEl.click(function(e){dump("type: "+val.type+"\n");switch(val.type){case"artist":LastfmTuner.drawSingleArtist(val);break;case"tag":LastfmTuner.drawSingleTag(val);break;case"user":LastfmTuner.drawSingleUser(val);break;default:gBrowser.loadOneTab(val.url);}});stationEl.hover(function(e){this.oldClass=this.className;this.className+=" row-open";}, function(e){this.className=this.oldClass;});resultsEl.append(stationEl);});} |
| ) |
|
if |
( |
typeof(Cc) |
= ="undefined" | ) |
|
Debug Wrapper. Subclasses and replaces DateRemote to keep track of how many dataremotes are alive, and for which keys.
Enable DEBUG_DATAREMOTES to track down leaks.
Definition at line 524 of file sbDataRemote.js.
window resize |
( |
function(e){var bodyHeight=$('body')[0].scrollHeight;var height=bodyHeight-$('#header')[0].scrollHeight;var height2=$('#left-content')[0].scrollHeight;if(height2 > height) height=height2;$('#right-nav').css({"min-height":height});height=$('#content')[0].scrollHeight+$('#header')[0].scrollHeight;$(".wrapper-box").css({"height":bodyHeight,"max-height":bodyHeight});$("#login-page").css({"min-height":height});$("#subscriber-page").css({"min-height":height});} |
| ) |
|
dataSBHighestRatedArtists __pad41__ |
dataSBHighestRatedArtists SBProperties artist |
Initial value:{
var resultsEl = $('#' + elementId + "-results")
Definition at line 877 of file tuner2.js.
dataSBGenres SBProperties playCount |
dataSBGenres SBProperties populateCallback |
dataSBHighestRatedArtists SBProperties rating |
dataSBGenres SBProperties tag |