Merge branch '1125-Vista-de-Agente-Modulo' into 'develop'

Disable autosubmit in agent module view - #1125

See merge request artica/pandorafms!753
This commit is contained in:
nramon 2017-10-30 15:29:09 +01:00
commit 9ecc68bfe7
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -72,7 +72,7 @@ function mainAgentsModules() {
$hor_offset = (int)get_parameter('hor_offset', 0);
$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');
$modules_selected = (array)get_parameter('module', 0);