diff --git a/htmlUI/templates/script/collector.js.tpl b/htmlUI/templates/script/collector.js.tpl
index 0850303b4..bb0c14cf5 100644
--- a/htmlUI/templates/script/collector.js.tpl
+++ b/htmlUI/templates/script/collector.js.tpl
@@ -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);
+ }
}
}