mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2012-09-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/javascript/pandora.js: Fix over agent_module_autocomplete function due to problems with Chrome. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6942 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c352eeebca
commit
d265738e99
@ -1,3 +1,8 @@
|
|||||||
|
2012-09-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* include/javascript/pandora.js: Fix over agent_module_autocomplete
|
||||||
|
function due to problems with Chrome.
|
||||||
|
|
||||||
2012-09-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2012-09-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php
|
* include/functions_reporting.php
|
||||||
|
@ -442,11 +442,15 @@ function agent_changed_by_multiple_agents_id (event, id_agent, selected) {
|
|||||||
* @param id_agent_id id of the hidden field to store the agent id
|
* @param id_agent_id id of the hidden field to store the agent id
|
||||||
* @param id_agent_module_selector id of the selector for the modules of the agent.
|
* @param id_agent_module_selector id of the selector for the modules of the agent.
|
||||||
*/
|
*/
|
||||||
function agent_module_autocomplete (id_agent_name, id_agent_id, id_agent_module_selector, id_server_name, noneValue, homedir = '.') {
|
function agent_module_autocomplete (id_agent_name, id_agent_id, id_agent_module_selector, id_server_name, noneValue, homedir) {
|
||||||
//Check exist the field with id in the var id_agent_name.
|
//Check exist the field with id in the var id_agent_name.
|
||||||
if ($(id_agent_name).length == 0)
|
if ($(id_agent_name).length == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
homedir_path = '';
|
||||||
|
if (homedir != undefined)
|
||||||
|
homedir_path = '.';
|
||||||
|
|
||||||
$(id_agent_name).autocomplete({
|
$(id_agent_name).autocomplete({
|
||||||
minLength: 2,
|
minLength: 2,
|
||||||
source: function( request, response ) {
|
source: function( request, response ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user