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
084a5c2352
commit
5e9d2802f9
|
@ -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>
|
||||
|
||||
* 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">
|
||||
$(document).ready (function () {
|
||||
$("#id_agents").change (agent_changed);
|
||||
//$("#id_agents").change (agent_changed);
|
||||
$("#id_agents").change (agent_changed_by_multiple_agents);
|
||||
});
|
||||
</script>
|
|
@ -137,8 +137,19 @@ function agent_changed_by_multiple_agents (event, id_agent, selected) {
|
|||
if (typeof($(document).data('text_for_module')) != 'undefined') {
|
||||
$('#module').append ($('<option></option>').html ($(document).data('text_for_module')).attr("value", 0).attr('selected', true));
|
||||
}
|
||||
else {
|
||||
$('#module').append ($('<option></option>').html (data['any_text']).attr ("value", 0).attr('selected', true));
|
||||
else {
|
||||
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) {
|
||||
s = js_html_entity_decode(val);
|
||||
|
|
Loading…
Reference in New Issue