Академический Документы
Профессиональный Документы
Культура Документы
<script type="text/javascript">
function rpsMessageBox ( sTypeBox, nIcon, sTextMessage, okFunction,
cancelFunction ) {
$('#txtMessage').val(sTextMessage);
if ( nIcon == '0' ) {
$('#divInformation').show();
$('#divExclamation').hide();
$('#divQuestion').hide();
$('#divError').hide();
} else if ( nIcon == '1' ) {
$('#divExclamation').show();
$('#divInformation').hide();
$('#divQuestion').hide();
$('#divError').hide();
} else if ( nIcon == '2' ) {
$('#divQuestion').show();
$('#divInformation').hide();
$('#divExclamation').hide();
$('#divError').hide();
} else {
$('#divError').show();
$('#divInformation').hide();
$('#divExclamation').hide();
$('#divQuestion').hide();
}
$(dlgMessageBox).dialog({
width: 500,
modal: true,
dialogClass: "no-close",
buttons: {
Aceptar: function () {
if ( typeof ( okFunction ) == 'function' ) {
setTimeout( okFunction, 50 );
}
$(this).dialog('destroy');
}
},
});
} else {
$(dlgMessageBox).dialog({
width: 500,
modal: true,
dialogClass: "no-close",
buttons: {
Aceptar: function () {
if ( typeof ( okFunction ) == 'function' ) {
setTimeout( okFunction, 50 );
}
$(this).dialog('destroy');
},
Cancelar: function () {
if ( typeof ( cancelFunction ) == 'function' ) {
setTimeout( cancelFunction, 50 );
}
$(this).dialog('destroy');
}
},
});
}
}
</script>