Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smsManager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
smsManager
Commits
6d57f767
Commit
6d57f767
authored
May 30, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nuevas funciones
parent
cc302e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
25 deletions
+37
-25
app/Resources/views/backend/research/busqueda.html.twig
app/Resources/views/backend/research/busqueda.html.twig
+37
-25
No files found.
app/Resources/views/backend/research/busqueda.html.twig
View file @
6d57f767
...
@@ -50,7 +50,13 @@
...
@@ -50,7 +50,13 @@
{%
block
javascripts
%}
{%
block
javascripts
%}
<script>
<script>
var
tipoSeteado
=
null
;
function
setearTipo
(
event
,
tipo
){
event
.
preventDefault
();
tipoSeteado
=
tipo
;
}
function
buscar
(
event
)
{
function
buscar
(
event
)
{
event
.
preventDefault
();
event
.
preventDefault
();
var
option
=
$
(
"
#selectedOption
"
).
val
();
var
option
=
$
(
"
#selectedOption
"
).
val
();
...
@@ -160,34 +166,40 @@
...
@@ -160,34 +166,40 @@
}
}
function
enviarLicencia
(
event
,
tipo
){
function
enviarLicencia
(
event
){
event
.
preventDefault
();
event
.
preventDefault
();
//todo
//todo
var
formData
=
new
FormData
();
var
formData
=
new
FormData
();
var
url
=
"
{{
path
(
'backend_researcher_enviar_correo'
)
}}
"
;
if
(
tipoSeteado
==
"
correo
"
){
formData
.
append
(
"
idUsuario
"
,
$
(
"
#idUsuario
"
).
val
());
var
url
=
"
{{
path
(
'backend_researcher_enviar_correo'
)
}}
"
;
$
.
ajax
formData
.
append
(
"
idUsuario
"
,
$
(
"
#idUsuario
"
).
val
());
({
$
.
ajax
type
:
"
POST
"
,
({
url
:
url
,
type
:
"
POST
"
,
data
:
formData
,
url
:
url
,
async
:
true
,
data
:
formData
,
cache
:
false
,
async
:
true
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
contentType
:
false
,
timeout
:
60000
,
processData
:
false
,
statusCode
:
{
timeout
:
60000
,
400
:
function
(
respuesta
)
{
statusCode
:
{
errorMessage
(
JSON
.
parse
(
respuesta
.
responseText
).
errors
,
"
#message-container-busqueda
"
);
400
:
function
(
respuesta
)
{
errorMessage
(
JSON
.
parse
(
respuesta
.
responseText
).
errors
,
"
#message-container-busqueda
"
);
},
500
:
function
()
{
errorMessage
(
"
Ha ocurrido un error.Intente nuevamente
"
,
"
#message-container-busqueda
"
);
}
},
},
500
:
function
()
{
success
:
function
()
{
errorMessage
(
"
Ha ocurrido un error.Intente nuevamente
"
,
"
#message-container-busqueda
"
);
successMessage
(
"
Se ha enviado el correo correctamente
"
,
"
#message-container-busqueda
"
);
}
},
},
});
success
:
function
()
{
}
else
if
(
tipoSeteado
==
"
sms
"
){
successMessage
(
"
Se ha enviado el correo correctamente
"
,
"
#message-container-busqueda
"
);
},
}
else
if
(
tipoSeteado
==
null
){
});
errorMessage
(
"
Debe seleccionar un tipo de envio.
"
,
"
#message-container-busqueda
"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment