diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 16d88e8d41..ca3ca0b275 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-20 Sergio Martin + + * godmode/alerts/alert_list.list.php: Fixed jquery clone + function incompatibility with iexplorer for bug 3090389 + 2010-10-20 Junichi Satoh * godmode/massive/massive_enable_disable_alerts.php: Improved template diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index 96cece7f44..bc2d56da4f 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -343,6 +343,7 @@ $table->data = array (); $rowPair = true; $iterator = 0; + foreach ($simple_alerts as $alert) { if ($alert['disabled']) { $table->rowstyle[$iterator] = 'font-style: italic; color: #aaaaaa;'; @@ -471,6 +472,25 @@ foreach ($simple_alerts as $alert) { $data[6] .= ' ' . __('Add action'); $data[6] .= ''; + $data[6] .= ''; + $status = STATUS_ALERT_NOT_FIRED; $title = ""; @@ -502,25 +522,6 @@ if (isset($data)){ echo "
".__('No alerts defined')."
"; } -echo ''; - // Create alert button echo '
'; echo '
'; @@ -631,9 +632,12 @@ $(document).ready (function () { id = this.id.split ("-").pop (); /* Replace link with a combo with the actions and a form */ - $form = $('form#add_action_form:last').clone (true).show (); - $("input#hidden-id_alert_module", $form).attr ("value", id); - $(this).replaceWith ($form); + //$form = $('form#add_action_form:last').clone (true).show (); + //alert($form); + //$("input#hidden-id_alert_module", $form).attr ("value", id); + $('#add_action_form-' + id).attr("class", ''); + $(this).attr("class", 'invisible'); + //$(this).replaceWith ($form); return false; });