just incase for unknown to me actions.
This commit is contained in:
parent
ea07030cd8
commit
321c698c40
|
@ -29,23 +29,28 @@ function collector_submit(formname, action, script, name, 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"
|
||||
);
|
||||
if(action === 'PL.removeItem') {
|
||||
|
||||
$.post(script + '?act=' + action + href,
|
||||
|
||||
{},
|
||||
|
||||
function(data){
|
||||
|
||||
if(data.error){
|
||||
alert(data.error);
|
||||
}
|
||||
|
||||
location.reload();
|
||||
},
|
||||
|
||||
"json"
|
||||
);
|
||||
}
|
||||
else {
|
||||
hpopup(script + '?act=' + action + href);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue