CC-84: Smart Playlists

- propel usage chage
- cleaning up code
- some js changes
This commit is contained in:
James 2012-07-18 11:52:09 -04:00
parent 0aae7c75ae
commit 2a38527161
8 changed files with 171 additions and 151 deletions

View file

@ -60,7 +60,7 @@ var AIRTIME = (function(AIRTIME) {
count++;
}
}
visibleChosenItems = {};
return count;
};
@ -123,7 +123,7 @@ var AIRTIME = (function(AIRTIME) {
data.push(visibleChosenItems[id]);
}
}
visibleChosenItems = {};
return data;
};
@ -441,7 +441,6 @@ var AIRTIME = (function(AIRTIME) {
$tr = $(el).parent();
data = $tr.data("aData");
AIRTIME.library.dblClickAdd(data.id, data.ftype);
//AIRTIME.playlist.fnAddItems([data.id], undefined, 'after');
}
else
{

View file

@ -674,6 +674,7 @@ var AIRTIME = (function(AIRTIME){
//Block UI changes the postion to relative to display the messages.
$lib.css("position", "static");
$pl.css("position", "static");
setupUI();
};
function playlistResponse(json){

View file

@ -173,7 +173,7 @@ function setupUI() {
$('button[id="generate_button"]').show();
$('button[id="shuffle_button"]').show();
$('#spl_sortable').unblock();
$('#library_content').unblock();
$('#spl_sortable').css("position", "static");
} else {
$('button[id="generate_button"]').hide();
$('button[id="shuffle_button"]').hide();