close working on side playlist

This commit is contained in:
naomiaro 2010-12-22 12:42:46 -05:00
parent 498a8c6823
commit 8f088abaea
6 changed files with 145 additions and 148 deletions

View file

@ -68,11 +68,24 @@ function moveSPLItem(event, ui) {
$.post(url, setSPLContent);
}
function closeSPL() {
var url;
url = '/Playlist/close/format/json/view/spl';
$.post(url, function(json){
$("#side_playlist")
.empty()
.append(json.html);
});
}
function setUpSPL() {
$("#spl_sortable").sortable();
$("#spl_sortable" ).bind( "sortstop", moveSPLItem);
$("#spl_remove_selected").click(deleteSPLItem);
$("#spl_close").click(closeSPL);
$("#spl_sortable").droppable();
$("#spl_sortable" ).bind( "drop", addSPLItem);