2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_agente.php, godmode/alerts/alert_list.php: fix bug when there aren't not defined or attach action in template alert. Before it was showing the loading ajax gif, now it show the select box with none. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1950 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
30c99f70cc
commit
09b43fb34a
|
@ -1,3 +1,9 @@
|
|||
2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/agentes/estado_agente.php, godmode/alerts/alert_list.php: fix
|
||||
bug when there aren't not defined or attach action in template alert. Before
|
||||
it was showing the loading ajax gif, now it show the select box with none.
|
||||
|
||||
2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_reporting.php, include/functions_agents.php: cleanup
|
||||
|
|
|
@ -724,22 +724,27 @@ $(document).ready (function () {
|
|||
"id_template" : this.value
|
||||
},
|
||||
function (data, status) {
|
||||
if (data != '') {
|
||||
jQuery.each (data, function (i, val) {
|
||||
option = $("<option></option>")
|
||||
.attr ("value", val["id"])
|
||||
.append (val["name"]);
|
||||
$("#action_select").append (option);
|
||||
});
|
||||
}
|
||||
option = $("<option></option>")
|
||||
.attr ("value", '0')
|
||||
.append ('<?php echo __('None'); ?>');
|
||||
$("#action_select").append (option);
|
||||
|
||||
if (data == false) {
|
||||
//There aren't any action
|
||||
}
|
||||
else {
|
||||
if (data != '') {
|
||||
jQuery.each (data, function (i, val) {
|
||||
option = $("<option></option>")
|
||||
.attr ("value", val["id"])
|
||||
.append (val["name"]);
|
||||
$("#action_select").append (option);
|
||||
});
|
||||
}
|
||||
$('#advanced_action').show();
|
||||
}
|
||||
$("#action_loading").hide ();
|
||||
$("#action_select").show();
|
||||
$('#advanced_action').show();
|
||||
},
|
||||
"json"
|
||||
);
|
||||
|
|
|
@ -42,9 +42,10 @@ if (is_ajax ()) {
|
|||
ORDER BY sort_order DESC");
|
||||
|
||||
|
||||
if ($rows !== false) {
|
||||
echo json_encode($rows);
|
||||
}
|
||||
if ($rows !== false)
|
||||
echo json_encode($rows);
|
||||
else
|
||||
echo "false";
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue