Created
January 22, 2017 08:11
-
-
Save emanueljtc/d3bd6f48f8b97ba490c4447a774934fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function confirmar() { | |
confirmar = confirm("¿Desea Actualiza el Paciente?") | |
if(confirmar) { | |
document.Person.submit() | |
return true; | |
}else{ | |
location.reload(true); | |
return false; | |
} | |
} | |
</script> | |
<div class="form-group col-sm-12"> | |
<center> | |
<?php echo $this->Form->submit('Actualizar', array('class' => 'btn btn-large btn-primary','onClick'=>'return confirmar();')); ?> | |
</center> | |
</div><!-- .form-group --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment