Disable autosubmit in agent module view - #1125

This commit is contained in:
enriquecd 2017-08-28 11:14:04 +02:00
parent ab48fabc0b
commit 29703c708a
2 changed files with 8 additions and 4 deletions

View File

@ -546,9 +546,11 @@ ui_require_jquery_file('pandora');
}); });
$('#group_id').change(function(){ $('#group_id').change(function(){
if(location.href.indexOf("extensions/agents_modules") == -1){
var regx = /&group_id=\d*/g; var regx = /&group_id=\d*/g;
var url = location.href.replace(regx, ""); var url = location.href.replace(regx, "");
location.href = url+"&group_id="+$("#group_id").val(); location.href = url+"&group_id="+$("#group_id").val();
}
}); });
}); });

View File

@ -70,7 +70,9 @@ function mainAgentsModules() {
$offset = (int)get_parameter('offset', 0); $offset = (int)get_parameter('offset', 0);
$hor_offset = (int)get_parameter('hor_offset', 0); $hor_offset = (int)get_parameter('hor_offset', 0);
$block = $config['block_size']; $block = $config['block_size'];
if(get_parameter('modulegroup') != null){
$agents_id = (array)get_parameter('id_agents2', -1); $agents_id = (array)get_parameter('id_agents2', -1);
}
$selection_a_m = (int)get_parameter('selection_agent_module'); $selection_a_m = (int)get_parameter('selection_agent_module');
$modules_selected = (array)get_parameter('module', 0); $modules_selected = (array)get_parameter('module', 0);
$update_item = (string)get_parameter('edit_item',''); $update_item = (string)get_parameter('edit_item','');