1.9.7 chrome bug fix

This commit is contained in:
Trevor Squillario 2012-04-06 13:16:38 -04:00
parent e6b8e131fd
commit 4304a0cbd3
3 changed files with 8 additions and 17 deletions

View file

@ -439,7 +439,7 @@ function playSong(el, songid, albumid) {
}
audio = soundManager.createSound({
id: 'audio',
url: baseURL + '/stream.view?u=' + username + '&p=' + passwordenc + '&v=' + version + '&c=' + applicationName + '&f=jsonp&id=' + songid + '&salt=' + salt,
url: baseURL + '/stream.view?u=' + username + '&p=' + passwordenc + '&v=' + version + '&c=' + applicationName + '&id=' + songid + '&salt=' + salt,
stream: true,
whileloading: function () {
if (debug) {
@ -555,17 +555,6 @@ function playPauseSong() {
}
}
}
function playAll() {
// Start playing song
var play = $('#CurrentPlaylistContainer tr.selected').first();
if (changeTrack(play)) {
$(el).find('img').attr('src', 'images/pause_24x32.png');
$(el).addClass('playing');
} else {
var first = $('#CurrentPlaylistContainer tr').first();
changeTrack(first);
}
}
function changeTrack(next) {
var songid = $(next).attr('childid');
if (songid !== undefined) {
@ -925,9 +914,9 @@ function addToPlaylist(playlistid, from) {
}
}
function addToCurrent(addAll) {
var count
var count;
if (addAll) {
count = $('#AlbumContainer tr').length;
count = $('#AlbumContainer tr.song').length;
} else {
count = $('#AlbumContainer tr.selected').length;
}