Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 84

Mensaje loading

Ver diferencias:

index.html
function addRecord(){
$("#dialog-form").html("");
$("#messageLoading").show();
$("#dialog-form").html("").css("display","none");;
$("#dialog-form").load("users/form.html", function() {
getAllGroups();
$("#form_data #action").val("add");
$("#form_data #messageForm").html("Todos los campos son obligatorios");
});
$("#form_data #messageForm").html("Todos los campos son obligatorios");
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,
position: top,
modal: true,
title: "Añadir Usuario"
}).dialog('option', 'position', [x, y]);
$("#messageLoading").hide();
$("#dialog-form").dialog({
resizable: false,
position: top,
modal: true,
width: 300,
title: "Añadir Usuario"
}).dialog('option', 'position', [x, y]);
});
}
function modifyRecord(){
var uid;
$("#messageLoading").show();
var uid = rowSelected();
if(uid==false)
return false;
$("#dialog-form").html("");
$("#dialog-form").html("").css("display","none");
$("#dialog-form").load("users/form.html", function() {
getAllGroups();
......
$.each(result.response['groups']['classrooms'], function(i, l){
$('#form_data input:checkbox[value='+l+']').attr('checked', true);
});
x = ($(window).width()-300)/2;
y = ($(window).height()-500)/2;
$("#messageLoading").hide();
$("#dialog-form").dialog({
resizable: false,
modal: true,
width: 300,
title: "Modificar Usuario"
}).dialog('option', 'position', [x, y]);
});
});
x = ($(window).width()-300)/2;
y = ($(window).height()-500)/2;
$("#dialog-form").dialog({
resizable: false,
modal: true,
width: 300,
title: "Modificar Usuario"
}).dialog('option', 'position', [x, y]);
}
function deleteRecord(){

Exportar a: Unified diff