From 7a1caca7245fe936f98834dfebc9ccf996fdac04 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 6 Mar 2013 12:43:20 +0000 Subject: [PATCH] 2013-03-06 Sergio Martin * godmode/alerts/configure_alert_action.php: Put again a missed help hint for the action macros. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7794 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/alerts/configure_alert_action.php | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 310a883dbc..45b39178ea 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-03-06 Sergio Martin + + * godmode/alerts/configure_alert_action.php: Put again + a missed help hint for the action macros. + 2013-03-06 Sergio Martin * include/functions_alerts.php: Change the update counts diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index 12a3199033..2cc6483509 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -102,6 +102,9 @@ if ($id) { $action_threshold = $action ['action_threshold']; } +// Hidden div with help hint to fill with javascript +html_print_div(array('id' => 'help_alert_macros_hint', 'content' => ui_print_help_icon ('alert_macros', true, ui_get_full_url(false, false, false, false)), 'hidden' => true)); + $table->width = '98%'; $table->style = array (); $table->style[0] = 'font-weight: bold'; @@ -213,6 +216,11 @@ $(document).ready (function () { else { $('#table1-field'+i).replaceWith(data["fields_rows"][i]); $("[name=field"+i+"_value]").val(old_value); + // Add help hint only in first field + if(i == 1) { + var td_content = $('#table1-field'+i).find('td').eq(0); + td_content.html(td_content.html() + $('#help_alert_macros_hint').html()); + } $('#table1-field').show(); } }