2009-09-14 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/exportdata.php, godmode/agentes/agent_manager.php,
	godmode/reporting/map_builder.php, godmode/reporting/graph_builder.php,
	godmode/alerts/alert_list.php: fix the bug that the div of autocomplete
	don't show.
	Fixes: 2856945



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1938 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-09-14 14:38:13 +00:00
parent 6d0fc39a96
commit e5d41944d9
6 changed files with 20 additions and 9 deletions

View File

@ -1,3 +1,11 @@
2009-09-14 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/exportdata.php, godmode/agentes/agent_manager.php,
godmode/reporting/map_builder.php, godmode/reporting/graph_builder.php,
godmode/alerts/alert_list.php: fix the bug that the div of autocomplete
don't show.
Fixes: 2856945
2009-09-14 Miguel de Dios <miguel.dedios@artica.es>
* include/styles/pandora.css, godmode/alerts/alert_list.php: minor fixes

View File

@ -223,7 +223,7 @@ $(document).ready (function () {
if (total == 0)
$("#text-id_parent").css ('background-color', '#cc0000');
else
$("#text-id_parent").css ('background-color', 'none');
$("#text-id_parent").css ('background-color', '');
if (data == "")
return false;
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';

View File

@ -438,7 +438,7 @@ if (! $id_agente) {
$table->data['agent'][0] = __('Agent');
$table->data['agent'][1] = print_input_text_extended ('id_agent', __('Select'), 'text-id_agent', '', 30, 100, false, '',
$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)
. '<a href="#" class="tip">&nbsp;<span>' . __("Type two chars at least for search") . '</span></a>';
@ -531,13 +531,14 @@ echo '</form>';
require_css_file ('cluetip');
require_jquery_file ('cluetip');
require_jquery_file ('pandora.controls');
require_jquery_file ('bgiframe');
require_jquery_file ('autocomplete');
?>
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready (function () {
$("#text-id_agent").autocomplete(
$("#text_id_agent").autocomplete(
"ajax.php",
{
minChars: 2,
@ -549,11 +550,12 @@ $(document).ready (function () {
},
formatItem: function (data, i, total) {
if (total == 0)
$("#text-id_agent").css ('background-color', '#cc0000');
$("#text_id_agent").css ('background-color', '#cc0000');
else
$("#text-id_agent").css ('background-color', 'none');
$("#text_id_agent").css ('background-color', '');
if (data == "")
return false;
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
},
delay: 200
@ -561,7 +563,7 @@ $(document).ready (function () {
);
$("#text-id_agent").result (
$("#text_id_agent").result (
function () {
selectAgent = true;
var agent_name = this.value;
@ -611,6 +613,7 @@ $(document).ready (function () {
$("#text-id_parent").css ('background-color', 'none');
if (data == "")
return false;
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
},
delay: 200

View File

@ -590,7 +590,7 @@ $(document).ready (function () {
if (total == 0)
$("#text-id_agent").css ('background-color', '#cc0000');
else
$("#text-id_agent").css ('background-color', 'none');
$("#text-id_agent").css ('background-color', '');
if (data == "")
return false;
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';

View File

@ -534,7 +534,7 @@ $(document).ready (function () {
if (total == 0)
$("#text-agent").css ('background-color', '#cc0000');
else
$("#text-agent").css ('background-color', 'none');
$("#text-agent").css ('background-color', '');
if (data == "")
return false;
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';

View File

@ -315,7 +315,7 @@ $(document).ready (function () {
if (total == 0)
$("#text-agent").css ('background-color', '#cc0000');
else
$("#text-agent").css ('background-color', 'none');
$("#text-agent").css ('background-color', '');
if (data == "")
return false;
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';