From 8922cef718ce3e9bb69c7e91a5e4b98d42818fc2 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Sat, 17 Oct 2009 14:20:25 +0000 Subject: [PATCH] 2009-10-17 Miguel de Dios * godmode/alerts/alert_list.php: set default action in alert combo box when you make a new alert. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2032 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/alerts/alert_list.php | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 504245cb7d..c8582ff90d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-10-17 Miguel de Dios + + * godmode/alerts/alert_list.php: set default action in alert combo box when + you make a new alert. + 2009-10-16 Raul Mateos * include/config_process.php: Update build after last changes. diff --git a/pandora_console/godmode/alerts/alert_list.php b/pandora_console/godmode/alerts/alert_list.php index ddb615509a..b06fd1a23f 100644 --- a/pandora_console/godmode/alerts/alert_list.php +++ b/pandora_console/godmode/alerts/alert_list.php @@ -443,11 +443,6 @@ if (! $id_agente) { $table->data['agent'][1] = print_input_text_extended ('id_agent', __('Select'), 'text_id_agent', '', 30, 100, false, '', array('style' => 'background: url(images/lightning.png) no-repeat right;'), true) . ' ' . __("Type two chars at least for search") . ''; - -// $table->data['agent'][1] = print_select (get_group_agents (array_keys ($groups), false, "none"), 'id_agent', 0, false, __('Select'), 0, true); -// $table->data['agent'][1] .= ' '; } $table->data[0][0] = __('Module'); @@ -740,6 +735,10 @@ $(document).ready (function () { option = $("") .attr ("value", val["id"]) .append (val["name"]); + + if (val["sort_order"] == 1) + option.attr ("selected", true); + $("#action_select").append (option); }); }