mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
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:
parent
7751c3e59f
commit
195bcc7930
@ -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>
|
2009-09-14 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/styles/pandora.css, godmode/alerts/alert_list.php: minor fixes
|
* include/styles/pandora.css, godmode/alerts/alert_list.php: minor fixes
|
||||||
|
@ -223,7 +223,7 @@ $(document).ready (function () {
|
|||||||
if (total == 0)
|
if (total == 0)
|
||||||
$("#text-id_parent").css ('background-color', '#cc0000');
|
$("#text-id_parent").css ('background-color', '#cc0000');
|
||||||
else
|
else
|
||||||
$("#text-id_parent").css ('background-color', 'none');
|
$("#text-id_parent").css ('background-color', '');
|
||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
||||||
|
@ -438,7 +438,7 @@ if (! $id_agente) {
|
|||||||
|
|
||||||
$table->data['agent'][0] = __('Agent');
|
$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)
|
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true)
|
||||||
. '<a href="#" class="tip"> <span>' . __("Type two chars at least for search") . '</span></a>';
|
. '<a href="#" class="tip"> <span>' . __("Type two chars at least for search") . '</span></a>';
|
||||||
|
|
||||||
@ -531,13 +531,14 @@ echo '</form>';
|
|||||||
require_css_file ('cluetip');
|
require_css_file ('cluetip');
|
||||||
require_jquery_file ('cluetip');
|
require_jquery_file ('cluetip');
|
||||||
require_jquery_file ('pandora.controls');
|
require_jquery_file ('pandora.controls');
|
||||||
|
require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
require_jquery_file ('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
|
|
||||||
$("#text-id_agent").autocomplete(
|
$("#text_id_agent").autocomplete(
|
||||||
"ajax.php",
|
"ajax.php",
|
||||||
{
|
{
|
||||||
minChars: 2,
|
minChars: 2,
|
||||||
@ -549,11 +550,12 @@ $(document).ready (function () {
|
|||||||
},
|
},
|
||||||
formatItem: function (data, i, total) {
|
formatItem: function (data, i, total) {
|
||||||
if (total == 0)
|
if (total == 0)
|
||||||
$("#text-id_agent").css ('background-color', '#cc0000');
|
$("#text_id_agent").css ('background-color', '#cc0000');
|
||||||
else
|
else
|
||||||
$("#text-id_agent").css ('background-color', 'none');
|
$("#text_id_agent").css ('background-color', '');
|
||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
||||||
},
|
},
|
||||||
delay: 200
|
delay: 200
|
||||||
@ -561,7 +563,7 @@ $(document).ready (function () {
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$("#text-id_agent").result (
|
$("#text_id_agent").result (
|
||||||
function () {
|
function () {
|
||||||
selectAgent = true;
|
selectAgent = true;
|
||||||
var agent_name = this.value;
|
var agent_name = this.value;
|
||||||
@ -611,6 +613,7 @@ $(document).ready (function () {
|
|||||||
$("#text-id_parent").css ('background-color', 'none');
|
$("#text-id_parent").css ('background-color', 'none');
|
||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
||||||
},
|
},
|
||||||
delay: 200
|
delay: 200
|
||||||
|
@ -590,7 +590,7 @@ $(document).ready (function () {
|
|||||||
if (total == 0)
|
if (total == 0)
|
||||||
$("#text-id_agent").css ('background-color', '#cc0000');
|
$("#text-id_agent").css ('background-color', '#cc0000');
|
||||||
else
|
else
|
||||||
$("#text-id_agent").css ('background-color', 'none');
|
$("#text-id_agent").css ('background-color', '');
|
||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
||||||
|
@ -534,7 +534,7 @@ $(document).ready (function () {
|
|||||||
if (total == 0)
|
if (total == 0)
|
||||||
$("#text-agent").css ('background-color', '#cc0000');
|
$("#text-agent").css ('background-color', '#cc0000');
|
||||||
else
|
else
|
||||||
$("#text-agent").css ('background-color', 'none');
|
$("#text-agent").css ('background-color', '');
|
||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
||||||
|
@ -315,7 +315,7 @@ $(document).ready (function () {
|
|||||||
if (total == 0)
|
if (total == 0)
|
||||||
$("#text-agent").css ('background-color', '#cc0000');
|
$("#text-agent").css ('background-color', '#cc0000');
|
||||||
else
|
else
|
||||||
$("#text-agent").css ('background-color', 'none');
|
$("#text-agent").css ('background-color', '');
|
||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
return data[0]+'<br><span class="ac_extra_field"><?php echo __("IP") ?>: '+data[1]+'</span>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user