Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Asistencia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Billy Larru
Asistencia
Commits
d0222fb9
Commit
d0222fb9
authored
Aug 29, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se corrige bug de acciones en crear rol policias
parent
68982c86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
crearRolPolicia.js
src/main/webapp/js/pages/crearRolPolicia.js
+14
-2
No files found.
src/main/webapp/js/pages/crearRolPolicia.js
View file @
d0222fb9
...
...
@@ -51,7 +51,7 @@ function listarRolesPolicias(objParams = {}) {
console
.
log
(
data
);
if
(
Object
.
is
(
data
,
1
))
{
return
` <span data-placement="left" title="Ver detalle" data-toggle="tooltip" style="cursor: pointer"> <i class='ver-detalle icon-calendar2 text-primary-700'></i> </span>
<span data-toggle="tooltip" data-placement="left" title="Desactivar Rol" style="cursor: pointer"> <i class='
anul
ar icon-cancel-circle2 text-danger-700'></i> </span>
<span data-toggle="tooltip" data-placement="left" title="Desactivar Rol" style="cursor: pointer"> <i class='
elimin
ar icon-cancel-circle2 text-danger-700'></i> </span>
`
;
}
else
{
return
null
;
...
...
@@ -82,7 +82,8 @@ function listarRolesPolicias(objParams = {}) {
columnDefs
,
},
classNameForDatatable
).
then
((
nodes
)
=>
{
nodes
.
container
.
off
().
on
(
"click"
,
".ver-detalle"
,
function
()
{
nodes
.
container
.
off
();
nodes
.
container
.
on
(
"click"
,
".ver-detalle"
,
function
()
{
let
data
=
nodes
.
datatable
.
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
console
.
log
(
data
);
...
...
@@ -112,6 +113,17 @@ function listarRolesPolicias(objParams = {}) {
});
});
nodes
.
container
.
on
(
"click"
,
".eliminar"
,
function
()
{
let
data
=
nodes
.
datatable
.
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
swal
({
type
:
'success'
,
title
:
'¡Eliminado correctamente!'
,
showConfirmButton
:
false
,
timer
:
1500
});
});
});
});
...
...
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