CC-84: Smart Playlists

- static playlist is done.
This commit is contained in:
James 2012-07-16 17:18:37 -04:00
parent 1bb97c8603
commit fc09baacd7
4 changed files with 114 additions and 19 deletions

View file

@ -658,6 +658,10 @@ var AIRTIME = (function(AIRTIME){
});
};
mod.fnOpenPlaylist = function(json) {
openPlaylist(json);
};
mod.enableUI = function() {
$lib.unblock();

View file

@ -221,9 +221,11 @@ function staticCallback(data) {
});
});
} else {
AIRTIME.playlist.fnAddItems(json.ids, null, 'after');
AIRTIME.playlist.fnOpenPlaylist(json);
var form = $('#smart-playlist-form');
form.find('.success').text('Smart playlist generated');
form.find('.success').show();
form.find('#smart_playlist_options').removeClass("closed");
}
}