From 56d11dd57c4a85fdeff12dcd3af029df94f51fe6 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 25 Feb 2010 18:18:30 +0000 Subject: [PATCH] 2010-02-25 Miguel de Dios * godmode/agentes/agent_manager.php: fix dinamic show icon when change the select and show other icon the icon with "without status". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2424 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/agent_manager.php | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e61324d3f7..9baa55c945 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-02-25 Miguel de Dios + + * godmode/agentes/agent_manager.php: fix dinamic show icon when change + the select and show other icon the icon with "without status". + 2010-02-25 Miguel de Dios * ChangeLog: I did'nt upload in previous commit the changelog. diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index f61f5212a8..3a5473b4d1 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -220,6 +220,7 @@ $path = 'images/gis_map/icons/'; //TODO set better method the path $table->data[12][0] = __('Icon agent'); $table->data[12][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) . + ' ' . __('Without status') . ': ' . ' ' . __('Default') . ': ' . ' ' . __('Ok') . ': ' . ' ' . __('Bad') . ': ' . @@ -256,22 +257,25 @@ require_jquery_file ('autocomplete'); function changeIcons() { icon = $("#icon_path :selected").val(); + $("#icon_without_status").attr("src", "images/spinner.png"); $("#icon_default").attr("src", "images/spinner.png"); $("#icon_ok").attr("src", "images/spinner.png"); $("#icon_bad").attr("src", "images/spinner.png"); $("#icon_warning").attr("src", "images/spinner.png"); if (icon.length == 0) { + $("#icon_without_status").attr("src", ""); $("#icon_default").attr("src", ""); $("#icon_ok").attr("src", ""); $("#icon_bad").attr("src", ""); $("#icon_warning").attr("src", ""); } else { - $("#icon_default").attr("src", "" + icon + ".png"); - $("#icon_ok").attr("src", "" + icon + "_ok.png"); - $("#icon_bad").attr("src", "" + icon + "_bad.png"); - $("#icon_warning").attr("src", "" + icon + "_warning.png"); + $("#icon_without_status").attr("src", "" + icon + ".png"); + $("#icon_default").attr("src", "" + icon + ".default.png"); + $("#icon_ok").attr("src", "" + icon + ".ok.png"); + $("#icon_bad").attr("src", "" + icon + ".bad.png"); + $("#icon_warning").attr("src", "" + icon + ".warning.png"); } //$("#icon_default").attr("src", "" + icon +