Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: action,
- type: 'POST',
- data: formData,
- mimeType: "multipart/form-data",
- contentType: false,
- cache: false,
- processData: false,
- success: function (data) {
- var mensajeError = data.ErrorMessage;
- if (mensajeError == null) mensajeError = "";
- if (data.IsValid == true) {
- BootstrapDialog.show({
- type: BootstrapDialog.TYPE_NOTIFY,
- title: 'Candidatura guardada.',
- message: 'Cambios de la candidatura guardados correctamente.' + mensajeError,
- });
- }
- else {
- BootstrapDialog.show({
- type: BootstrapDialog.TYPE_ERROR,
- title: 'Error guardado.',
- message: mensajeError,
- });
- }
- }
- });
- $("#form").submit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement