Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).on('click', '.openModal', function (event)
- {
- event.preventDefault();
- jQuery('#modal-registro').iziModal('open', this);
- });
- jQuery("#modal-registro").iziModal({
- title: '<?=MODAL_TITLE?>',
- subtitle: '<?=MODAL_SUBTITLE?>',
- width: '<?=MODAL_ANCHO?>',
- iframe: true,
- iframeHeight: 380,
- closeButton: true,
- fullscreen: true,
- iframeURL: 'registro.php?lang=<?php echo $lang; ?>'
- });
- $.ajax({
- url: 'php/procesa-preregistro.php',
- dataType: 'text',
- cache: false,
- contentType: false,
- processData: false,
- data: formdata,
- type: 'post',
- success: function(data){
- if(data>0) {
- $('#procesando').html("").fadeOut('fast');
- $.jAlert({'title':'<?=MODAL_THANKS_TITLE?>',
- 'content':'<?=MODAL_THANKS_TEXT?>',
- 'size':'md',
- 'showAnimation':'fadeInUp',
- 'hideAnimation':'fadeOutDown',
- 'theme':'blue',
- onClose: function() {
- //location.reload();
- $("modal-registro").iziModal('close');
- }
- });
- }
- else {
- $.jAlert({'title':'Error de Proceso',
- 'content':'Hubo un error al procesar su solicitud. Por favor, verifique los datos e intente de nuevo.',
- 'size':'sm',
- 'showAnimation':'fadeInUp',
- 'hideAnimation':'fadeOutDown',
- 'theme':'red'
- });
- return false;
- }
- }
- });
Add Comment
Please, Sign In to add comment