Skip to content

Instantly share code, notes, and snippets.

@emanueljtc
Created January 22, 2017 08:11
Show Gist options
  • Save emanueljtc/d3bd6f48f8b97ba490c4447a774934fb to your computer and use it in GitHub Desktop.
Save emanueljtc/d3bd6f48f8b97ba490c4447a774934fb to your computer and use it in GitHub Desktop.
<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