Advertisement
Guest User

Untitled

a guest
May 27th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. $.ajax({
  2. url: action,
  3. type: 'POST',
  4. data: formData,
  5. mimeType: "multipart/form-data",
  6. contentType: false,
  7. cache: false,
  8. processData: false,
  9. success: function (data) {
  10. var mensajeError = data.ErrorMessage;
  11. if (mensajeError == null) mensajeError = "";
  12. if (data.IsValid == true) {
  13. BootstrapDialog.show({
  14. type: BootstrapDialog.TYPE_NOTIFY,
  15. title: 'Candidatura guardada.',
  16. message: 'Cambios de la candidatura guardados correctamente.' + mensajeError,
  17.  
  18. });
  19. }
  20. else {
  21. BootstrapDialog.show({
  22. type: BootstrapDialog.TYPE_ERROR,
  23. title: 'Error guardado.',
  24. message: mensajeError,
  25. });
  26. }
  27.  
  28. }
  29.  
  30. });
  31.  
  32. $("#form").submit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement