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 {
|
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);
|
|
||||||
}
|
if(data.error){
|
||||||
|
alert(data.error);
|
||||||
location.reload();
|
}
|
||||||
},
|
|
||||||
|
location.reload();
|
||||||
"json"
|
},
|
||||||
);
|
|
||||||
|
"json"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
hpopup(script + '?act=' + action + href);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue