Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
proyecto-estandar
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
Israel Gutierrez Salazar
proyecto-estandar
Commits
ba1776aa
Commit
ba1776aa
authored
Feb 22, 2018
by
Israel Gutierrez Salazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambio a ES6 a ubigeo
parent
fb1b28ec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
6 deletions
+74
-6
Project.xml
.idea/codeStyles/Project.xml
+29
-0
dbnavigator.xml
.idea/dbnavigator.xml
+0
-0
UbigeoServlet.java
src/java/demojsoncrud/servlets/UbigeoServlet.java
+0
-1
general.js
web/js/general.js
+39
-5
persona.js
web/js/pages/persona.js
+6
-0
No files found.
.idea/codeStyles/Project.xml
0 → 100644
View file @
ba1776aa
<component
name=
"ProjectCodeStyleConfiguration"
>
<code_scheme
name=
"Project"
version=
"173"
>
<DBN-PSQL>
<case-options
enabled=
"false"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
<option
name=
"FUNCTION_CASE"
value=
"lower"
/>
<option
name=
"PARAMETER_CASE"
value=
"lower"
/>
<option
name=
"DATATYPE_CASE"
value=
"lower"
/>
<option
name=
"OBJECT_CASE"
value=
"preserve"
/>
</case-options>
<formatting-settings
enabled=
"false"
/>
</DBN-PSQL>
<DBN-SQL>
<case-options
enabled=
"false"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
<option
name=
"FUNCTION_CASE"
value=
"lower"
/>
<option
name=
"PARAMETER_CASE"
value=
"lower"
/>
<option
name=
"DATATYPE_CASE"
value=
"lower"
/>
<option
name=
"OBJECT_CASE"
value=
"preserve"
/>
</case-options>
<formatting-settings
enabled=
"false"
>
<option
name=
"STATEMENT_SPACING"
value=
"one_line"
/>
<option
name=
"CLAUSE_CHOP_DOWN"
value=
"chop_down_if_statement_long"
/>
<option
name=
"ITERATION_ELEMENTS_WRAPPING"
value=
"chop_down_if_not_single"
/>
</formatting-settings>
</DBN-SQL>
</code_scheme>
</component>
\ No newline at end of file
.idea/dbnavigator.xml
0 → 100644
View file @
ba1776aa
This diff is collapsed.
Click to expand it.
src/java/demojsoncrud/servlets/UbigeoServlet.java
View file @
ba1776aa
package
demojsoncrud
.
servlets
;
import
demojsoncrud.beans.UbigeoBean
;
import
demojsoncrud.services.UbigeoService
;
import
static
demojsoncrud
.
utilities
.
CustomHttpServletRequest
.
getBodyJsonObject
;
import
java.io.IOException
;
...
...
web/js/general.js
View file @
ba1776aa
...
...
@@ -59,15 +59,49 @@ let customSwal = {
warning
:
'#FF7043'
}
let
btnColor
=
colors
[
type
]
swal
({
title
:
title
,
text
:
text
,
confirmButtonColor
:
btnColor
,
type
:
type
return
new
Promise
((
resolve
,
reject
)
=>
{
swal
({
title
:
title
,
text
:
text
,
confirmButtonColor
:
btnColor
,
type
:
type
},
(
isConfirm
)
=>
{
resolve
()
})
})
}
}
/**
* Get the closest matching element up the DOM tree.
* @private
* @param {Element} elem Starting element
* @param {String} selector Selector to match against
* @return {Boolean|Element} Returns null if not match found
*/
let
getClosest
=
(
elem
,
selector
)
=>
{
// Element.matches() polyfill
if
(
!
Element
.
prototype
.
matches
)
{
Element
.
prototype
.
matches
=
Element
.
prototype
.
matchesSelector
||
Element
.
prototype
.
mozMatchesSelector
||
Element
.
prototype
.
msMatchesSelector
||
Element
.
prototype
.
oMatchesSelector
||
Element
.
prototype
.
webkitMatchesSelector
||
function
(
s
)
{
var
matches
=
(
this
.
document
||
this
.
ownerDocument
).
querySelectorAll
(
s
),
i
=
matches
.
length
while
(
--
i
>=
0
&&
matches
.
item
(
i
)
!==
this
)
{}
return
i
>
-
1
}
}
// Get closest match
for
(;
elem
&&
elem
!==
document
;
elem
=
elem
.
parentNode
)
{
if
(
elem
.
matches
(
selector
))
return
elem
}
return
null
}
// function imprimirAlerta (title, text, type) {
// var s_col =
// var e_col = '#EF5350'
...
...
web/js/pages/persona.js
View file @
ba1776aa
...
...
@@ -228,6 +228,12 @@ let asignarEventos = () => {
})
})
document
.
querySelectorAll
(
'.estado'
).
forEach
((
e
)
=>
{
e
.
addEventListener
(
'click'
,
(
ev
)
=>
{
console
.
log
(
getClosest
(
ev
.
target
,
'tr'
).
rowIndex
-
1
)
})
})
$
(
'#tbl-persona tbody'
).
on
(
'click'
,
'.editarPersona'
,
(
event
)
=>
{
let
rowData
=
obtenerDatosTabla
(
$
(
event
.
currentTarget
).
parents
(
'tr'
))
$
(
'#txt_numero_documento_editar'
).
val
(
rowData
.
dni
)
...
...
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