changed to better looking theme with newer version of jquery UI. Can create new playlists on the side.

This commit is contained in:
naomiaro 2011-01-16 17:12:02 -05:00
parent 91e0db7647
commit ccb36c8106
33 changed files with 886 additions and 73 deletions

View file

@ -78,7 +78,34 @@ function closeSPL() {
}
function newSPL() {
var url;
url = '/Playlist/new/format/json';
$.post(url, function(json){
var submit;
submit = $('<span>Submit</span>')
.click(function(){
var url, data;
url = '/Playlist/metadata/format/json';
data = $("#side_playlist form").serialize();
$.post(url, data, function(json){
if(json.form){
}
openDiffSPL(json);
})
});
$("#side_playlist")
.empty()
.append(json.form)
.append(submit);
});
}
function deleteSPL() {
@ -103,6 +130,7 @@ function setUpSPL() {
$("#spl_sortable").sortable();
$("#spl_sortable" ).bind( "sortstop", moveSPLItem);
$("#spl_remove_selected").click(deleteSPLItem);
$("#spl_new").click(newSPL);
$("#spl_close").click(closeSPL);
$("#spl_delete").click(deleteSPL);
$(".ui-icon-close").click(deleteSPLItem);