Revisión 63
Añadido por Manu Mora Gordillo hace alrededor de 14 años
index.html | ||
---|---|---|
var textType = "Profesor";
|
||
else
|
||
var textType = "Alumno";
|
||
|
||
var dep = Array(result.response['groups']['departments']);
|
||
|
||
$("#form_data #type").replaceWith(textType+"<input type='hidden' id='type' name='type' value='"+result.response['type']+"'/>");
|
||
$("#form_data #name").val(result.response['name']);
|
||
$("#form_data #nif").val(result.response['nif']);
|
||
$("#form_data #user").val(result.response['user']);
|
||
$("#form_data #surname").val(result.response['surname']);
|
||
|
||
|
||
$.each(result.response['groups']['departments'], function(i, l){
|
||
$("#form_data #departments option:contains('"+l+"')").attr("selected","selected");
|
||
$('#form_data input:checkbox[value='+l+']').attr('checked', true);
|
||
});
|
||
|
||
$.each(result.response['groups']['classrooms'], function(i, l){
|
||
$('#form_data input:checkbox[value='+l+']').attr('checked', true);
|
||
});
|
||
});
|
||
});
|
||
|
||
x = ($(window).width()-250)/2;
|
||
y = ($(window).height()-400)/2;
|
||
x = ($(window).width()-300)/2;
|
||
y = ($(window).height()-500)/2;
|
||
|
||
$("#dialog-form").dialog({
|
||
resizable: false,
|
||
modal: true,
|
||
width: 400,
|
||
width: 300,
|
||
title: "Modificar Usuario"
|
||
}).dialog('option', 'position', [x, y]);
|
||
}
|
Exportar a: Unified diff
Grupos de usuarios