2010-04-22 Miguel de Dios <miguel.dedios@artica.es>

* include/javascript/pandora.js: erased trace line in the source of function
	"agent_changed", and force to select by default the none option.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2586 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-04-22 11:58:17 +00:00
parent e922f46275
commit 06ba6946f8
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-04-22 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora.js: erased trace line in the source of function
"agent_changed", and force to select by default the none option.
2010-04-22 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora.js: changed function "agent_changed" for take

View File

@ -75,14 +75,13 @@ function agent_changed (event, id_agent, selected) {
"id_agent": id_agent
},
function (data) {
console.log($(document).data('text_for_module'));
$('#module').empty ();
if (typeof($(document).data('text_for_module')) != 'undefined') {
$('#module').append ($('<option></option>').html ($(document).data('text_for_module')).attr ("value", 0));
$('#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));
$('#module').append ($('<option></option>').html (data['any_text']).attr ("value", 0).attr('selected', true));
}
jQuery.each (data, function (i, val) {
s = js_html_entity_decode (val['nombre']);