can add a playlist to scratchpad from search/browse, popups are gone from adding to playlist, removing from playlist.

This commit is contained in:
naomiaro 2010-10-14 20:39:45 -04:00
parent 69f526b572
commit ea07030cd8
7 changed files with 58 additions and 24 deletions

View file

@ -24,8 +24,29 @@ function collector_submit(formname, action, script, name, width, height)
return;
{literal}
}
if (name) popup (script + '?act=' + action + href, popup, width, height);
else hpopup(script + '?act=' + action + href);
if (name){
popup (script + '?act=' + action + href, popup, width, height);
}
else {
//alert(action);
//hpopup(script + '?act=' + action + href);
$.post(script + '?act=' + action + href,
{},
function(data){
if(data.error){
alert(data.error);
}
location.reload();
},
"json"
);
}
}
function collector_switchAll(formname)