mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2010-05-17 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora.js, godmode/reporting/visual_console_builder.wizard.php: fixed the select box modules for when select many agents. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d4bc94443a
commit
7f245aa1dd
@ -1,3 +1,9 @@
|
|||||||
|
2010-05-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/javascript/pandora.js,
|
||||||
|
godmode/reporting/visual_console_builder.wizard.php: fixed the select box
|
||||||
|
modules for when select many agents.
|
||||||
|
|
||||||
2010-05-17 Sergio Martin <sergio.martin@artica.es>
|
2010-05-17 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php: Fixed the
|
* include/functions_reporting.php: Fixed the
|
||||||
|
@ -81,6 +81,7 @@ echo '<span id="any_text" style="display: none;">' . __('Any') . '</span>';
|
|||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
$("#id_agents").change (agent_changed);
|
//$("#id_agents").change (agent_changed);
|
||||||
|
$("#id_agents").change (agent_changed_by_multiple_agents);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
@ -137,8 +137,19 @@ function agent_changed_by_multiple_agents (event, id_agent, selected) {
|
|||||||
if (typeof($(document).data('text_for_module')) != 'undefined') {
|
if (typeof($(document).data('text_for_module')) != 'undefined') {
|
||||||
$('#module').append ($('<option></option>').html ($(document).data('text_for_module')).attr("value", 0).attr('selected', true));
|
$('#module').append ($('<option></option>').html ($(document).data('text_for_module')).attr("value", 0).attr('selected', true));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#module').append ($('<option></option>').html (data['any_text']).attr ("value", 0).attr('selected', true));
|
if (typeof(data['any_text']) != 'undefined') {
|
||||||
|
$('#module').append ($('<option></option>').html (data['any_text']).attr ("value", 0).attr('selected', true));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var anyText = $("#any_text").html(); //Trick for catch the translate text.
|
||||||
|
|
||||||
|
if (anyText == null) {
|
||||||
|
anyText = 'Any';
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#module').append ($('<option></option>').html (anyText).attr ("value", 0).attr('selected', true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
jQuery.each (data, function (i, val) {
|
jQuery.each (data, function (i, val) {
|
||||||
s = js_html_entity_decode(val);
|
s = js_html_entity_decode(val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user