2013-03-06 Sergio Martin <sergio.martin@artica.es>
* 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
This commit is contained in:
parent
f9496129bb
commit
7a1caca724
|
@ -1,3 +1,8 @@
|
|||
2013-03-06 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/alerts/configure_alert_action.php: Put again
|
||||
a missed help hint for the action macros.
|
||||
|
||||
2013-03-06 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_alerts.php: Change the update counts
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue