just incase for unknown to me actions.

This commit is contained in:
naomiaro 2010-10-14 20:48:33 -04:00
parent ea07030cd8
commit 321c698c40
1 changed files with 21 additions and 16 deletions

View File

@ -29,23 +29,28 @@ function collector_submit(formname, action, script, name, width, height)
} }
else { else {
//alert(action); //alert(action);
//hpopup(script + '?act=' + action + href);
$.post(script + '?act=' + action + href, if(action === 'PL.removeItem') {
{}, $.post(script + '?act=' + action + href,
function(data){ {},
if(data.error){ function(data){
alert(data.error);
}
location.reload(); if(data.error){
}, alert(data.error);
}
"json" location.reload();
); },
"json"
);
}
else {
hpopup(script + '?act=' + action + href);
}
} }
} }