@stop
@section('JS')
@stop
@section('JSOr')
$("#frmAgregarZoom").submit(function(e){
e.preventDefault();
var frmAgregarZoom = new FormData(document.getElementById("frmAgregarZoom"));
$.ajax({
type: "POST",
url: "{{ URL::route('SysWebSoporteVideoconferenciasZoomAgregar') }}",
data: frmAgregarZoom,
cache: false,
contentType: false,
processData: false,
dataType: "json",
success: function(data){
if(data.success){
new PNotify({ title: "Realizado", text: data.mensaje, type: "success" });
setTimeout( function(){ window.location.href = "{{ URL::route('SysWebSoporteVideoconferenciasZoomListar') }}"; }, 2000 );
}
else{
new PNotify({ title: "Realizado", text: data.mensaje, type: "error" });
}
},
error: function(jqXHR, textStatus, errorThrown){
new PNotify({ title: "Error", text: textStatus + " " + errorThrown, type: "error" });
}
});
});
@stop