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
e6d7b04a
Commit
e6d7b04a
authored
Jul 21, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agregando language al datatable proyeccion asistencias policias
parent
76e42fb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
proyectar_asistencia_policias.js
src/main/webapp/js/pages/proyectar_asistencia_policias.js
+30
-7
No files found.
src/main/webapp/js/pages/proyectar_asistencia_policias.js
View file @
e6d7b04a
...
...
@@ -27,6 +27,28 @@ function mostrarVistaPrevia() {
console
.
log
(
data
);
$
(
"#tblAsistenciaPolicias"
).
DataTable
().
destroy
();
$
(
"#tblAsistenciaPolicias"
).
DataTable
({
"language"
:
{
"lengthMenu"
:
"Mostrar: _MENU_"
,
"zeroRecords"
:
" No se encontraron resultados"
,
"info"
:
" Mostrando del _START_ al _END_ de un total de _TOTAL_ registros"
,
"infoEmpty"
:
" Mostrando 0 de 0 registros"
,
"search"
:
"Filtrar:"
,
"loadingRecords"
:
"Cargando..."
,
"processing"
:
'<span style="width:100%;"><img src="http://www.snacklocal.com/images/ajaxload.gif"></span>'
,
"paginate"
:
{
"first"
:
"First"
,
"last"
:
"Last"
,
"next"
:
"Siguiente"
,
"previous"
:
"Anterior"
}
},
"bSort"
:
false
,
"bFilter"
:
false
,
"aaSorting"
:
[],
"ordering"
:
false
,
"bLengthChange"
:
false
,
"bInfo"
:
true
,
"paging"
:
true
,
iDisplayLength
:
50
,
bStateSave
:
false
,
autoWidth
:
false
,
...
...
@@ -48,15 +70,15 @@ function mostrarVistaPrevia() {
{
"data"
:
"tipo_horario"
,
"className"
:
"text-center"
,
render
:
(
data
)
=>
{
render
:
(
data
)
=>
{
let
label
=
''
;
switch
(
data
)
{
switch
(
data
)
{
case
"REGULAR"
:
label
=
`label bg-slate border-slate-700`
;
break
;
label
=
`label bg-slate border-slate-700`
;
break
;
}
return
`<span class="
${
label
}
">
${
data
}
</span>`
;
}
},
...
...
@@ -112,7 +134,7 @@ $(function () {
});
$
(
"#dpFechaFin"
).
datepicker
(
'setDate'
,
'now'
);
defaultConfigDataTable
();
//
defaultConfigDataTable();
initializeData
();
$
(
"#btnVistaPrevia"
).
click
(
mostrarVistaPrevia
);
});
\ No newline at end of file
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